mirror of
https://github.com/aniyomiorg/aniyomi.git
synced 2024-11-25 22:29:45 +03:00
feat(animescreen): Don't show "airing in" for completed anime (#1134)
This commit is contained in:
parent
298077c443
commit
1cea3286f2
1 changed files with 3 additions and 2 deletions
|
@ -65,6 +65,7 @@ import eu.kanade.presentation.entries.anime.components.ExpandableAnimeDescriptio
|
|||
import eu.kanade.presentation.entries.anime.components.NextEpisodeAiringListItem
|
||||
import eu.kanade.tachiyomi.R
|
||||
import eu.kanade.tachiyomi.animesource.ConfigurableAnimeSource
|
||||
import eu.kanade.tachiyomi.animesource.model.SAnime
|
||||
import eu.kanade.tachiyomi.data.download.anime.model.AnimeDownload
|
||||
import eu.kanade.tachiyomi.source.anime.getNameForAnimeInfo
|
||||
import eu.kanade.tachiyomi.ui.browse.anime.extension.details.SourcePreferencesScreen
|
||||
|
@ -471,7 +472,7 @@ private fun AnimeScreenSmallImpl(
|
|||
timer -= 1000L
|
||||
}
|
||||
}
|
||||
if (timer > 0L && showNextEpisodeAirTime) {
|
||||
if (timer > 0L && showNextEpisodeAirTime && state.anime.status.toInt() != SAnime.COMPLETED) {
|
||||
NextEpisodeAiringListItem(
|
||||
title = stringResource(
|
||||
R.string.display_mode_episode,
|
||||
|
@ -728,7 +729,7 @@ fun AnimeScreenLargeImpl(
|
|||
timer -= 1000L
|
||||
}
|
||||
}
|
||||
if (timer > 0L && showNextEpisodeAirTime) {
|
||||
if (timer > 0L && showNextEpisodeAirTime && state.anime.status.toInt() != SAnime.COMPLETED) {
|
||||
NextEpisodeAiringListItem(
|
||||
title = stringResource(
|
||||
R.string.display_mode_episode,
|
||||
|
|
Loading…
Reference in a new issue