mirror of
https://github.com/recloudstream/cloudstream.git
synced 2024-08-15 01:53:11 +00:00
Fixed:
Lock when switching episodes Lock on RTL layouts Skipping to the next season
This commit is contained in:
parent
30316107c8
commit
9a93b375f3
2 changed files with 8 additions and 6 deletions
|
@ -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
|
||||
|
|
|
@ -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) {
|
||||
|
|
Loading…
Reference in a new issue