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:
Jannik 2021-01-01 12:15:17 +01:00
parent 1efc108bd7
commit 75ecac6144
Signed by: Seil0
GPG Key ID: E8459F3723C52C24
6 changed files with 10 additions and 8 deletions

View File

@ -1,7 +1,7 @@
# teapod
A unofficial App for Anime-on-Demand.
Teapod is a unoffical App for Anime-on-Demand (AoD). It allows you to watch all your favourite animes from AoD on your Android Device.
Teapod is a unofficial App for Anime-on-Demand (AoD). It allows you to watch all your favourite animes from AoD on your Android Device.
[<img src="https://gitlab.com/IzzyOnDroid/repo/-/raw/master/assets/IzzyOnDroid.png" height="75">](https://apt.izzysoft.de/fdroid/index/apk/org.mosad.teapod)
@ -26,4 +26,4 @@ If a tv show is selected, the first episode will be marked as already watched. T
#### Why is it called Teapod?
Teapod is a Acronym for "The ultimate anime app on demand", hence this project is called Teapod and not Teapot.
Teapod © 2020 [@Seil0](https://git.mosad.xyz/Seil0)
Teapod © 2020-2021 [@Seil0](https://git.mosad.xyz/Seil0)

View File

@ -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

View File

@ -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

View File

@ -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
}
}

View File

@ -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>

View File

@ -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>