always visible next ep button fix
the always visible next ep button cloud be hidden, when playing the last ep of a tv show and changing to a previous ep via the episodes list
This commit is contained in:
		| @ -1,7 +1,7 @@ | ||||
| /** | ||||
|  * Teapod | ||||
|  * | ||||
|  * Copyright 2020  <seil0@mosad.xyz> | ||||
|  * Copyright 2020-2021  <seil0@mosad.xyz> | ||||
|  * | ||||
|  * This program is free software; you can redistribute it and/or modify | ||||
|  * it under the terms of the GNU General Public License as published by | ||||
|  | ||||
| @ -1,7 +1,7 @@ | ||||
| /** | ||||
|  * Teapod | ||||
|  * | ||||
|  * Copyright 2020  <seil0@mosad.xyz> | ||||
|  * Copyright 2020-2021  <seil0@mosad.xyz> | ||||
|  * | ||||
|  * This program is free software; you can redistribute it and/or modify | ||||
|  * it under the terms of the GNU General Public License as published by | ||||
|  | ||||
| @ -260,8 +260,10 @@ class PlayerActivity : AppCompatActivity() { | ||||
|     private fun onMediaChanged() { | ||||
|         exo_text_title.text = model.getMediaTitle() | ||||
|  | ||||
|         if (model.nextEpisode == null) { | ||||
|             button_next_ep_c.visibility = View.GONE | ||||
|         button_next_ep_c.visibility = if (model.nextEpisode == null) { | ||||
|             View.GONE | ||||
|         } else { | ||||
|             View.VISIBLE | ||||
|         } | ||||
|     } | ||||
|  | ||||
|  | ||||
| @ -41,7 +41,7 @@ | ||||
|         Teapod ist eine inoffizielle App für Anime on Demand. | ||||
|         Sie wird unter den Bedingungen der GNU GPL 3 oder höher zur Verfügung gestellt. | ||||
|         \n\n | ||||
|         © 2020 seil0@mosad.xyz | ||||
|         © 2020-2021 seil0@mosad.xyz | ||||
|     </string> | ||||
|     <string name="third_party_heading">Lizenzen von Drittanbietern</string> | ||||
|     <string name="third_party_component_desc">© %1$s %2$s unter %3$s</string> | ||||
|  | ||||
| @ -50,7 +50,7 @@ | ||||
|         Teapod is an unofficial app for anime on demand. | ||||
|         It is published under the terms and conditions of the GNU GPL 3 or later. | ||||
|         \n\n | ||||
|         © 2020 seil0@mosad.xyz | ||||
|         © 2020-2021 seil0@mosad.xyz | ||||
|     </string> | ||||
|     <string name="tmdb_notice" translatable="false">This product uses the TMDb API but is not endorsed or certified by TMDb.</string> | ||||
|     <string name="teapod_repo" translatable="false">git.mosad.xyz/Seil0/teapod</string> | ||||
|  | ||||
		Reference in New Issue
	
	Block a user