Lock when switching episodes
Lock on RTL layouts
Skipping to the next season
This commit is contained in:
Blatzar 2022-11-12 22:29:22 +01:00
parent 30316107c8
commit 9a93b375f3
2 changed files with 8 additions and 6 deletions

View file

@ -612,6 +612,7 @@ open class FullScreenPlayer : AbstractPlayerFragment() {
//player_media_route_button?.isClickable = !isGone
player_go_back_holder?.isGone = isGone
player_sources_btt?.isGone = isGone
player_skip_episode?.isGone = isGone
}
private fun updateLockUI() {
@ -1101,7 +1102,6 @@ open class FullScreenPlayer : AbstractPlayerFragment() {
}
protected fun uiReset() {
isLocked = false
isShowing = false
// if nothing has loaded these buttons should not be visible

View file

@ -1582,7 +1582,6 @@ class ResultViewModel2 : ViewModel() {
return
}
val episodes = currentEpisodes[indexer]
val ranges = currentRanges[indexer]
if (ranges?.contains(range) != true) {
@ -1594,7 +1593,6 @@ class ResultViewModel2 : ViewModel() {
}
}
val size = episodes?.size
val isMovie = currentResponse?.isMovie() == true
currentIndex = indexer
currentRange = range
@ -1604,6 +1602,7 @@ class ResultViewModel2 : ViewModel() {
text to r
} ?: emptyList())
val size = currentEpisodes[indexer]?.size
_episodesCountText.postValue(
some(
if (isMovie) null else
@ -1683,9 +1682,12 @@ class ResultViewModel2 : ViewModel() {
generator = if (isMovie) {
getMovie()?.let { RepoLinkGenerator(listOf(it), page = currentResponse) }
} else {
episodes?.let { list ->
RepoLinkGenerator(list, page = currentResponse)
}
val episodes = currentEpisodes.filter { it.key.dubStatus == indexer.dubStatus }
.toList()
.sortedBy { it.first.season }
.flatMap { it.second }
RepoLinkGenerator(episodes, page = currentResponse)
}
if (isMovie) {