feat(animescreen): Don't show "airing in" for completed anime (#1134)

This commit is contained in:
Secozzi 2023-09-27 14:20:29 +00:00 committed by GitHub
parent 298077c443
commit 1cea3286f2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

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