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_media_route_button?.isClickable = !isGone
|
||||||
player_go_back_holder?.isGone = isGone
|
player_go_back_holder?.isGone = isGone
|
||||||
player_sources_btt?.isGone = isGone
|
player_sources_btt?.isGone = isGone
|
||||||
|
player_skip_episode?.isGone = isGone
|
||||||
}
|
}
|
||||||
|
|
||||||
private fun updateLockUI() {
|
private fun updateLockUI() {
|
||||||
|
@ -1101,7 +1102,6 @@ open class FullScreenPlayer : AbstractPlayerFragment() {
|
||||||
}
|
}
|
||||||
|
|
||||||
protected fun uiReset() {
|
protected fun uiReset() {
|
||||||
isLocked = false
|
|
||||||
isShowing = false
|
isShowing = false
|
||||||
|
|
||||||
// if nothing has loaded these buttons should not be visible
|
// if nothing has loaded these buttons should not be visible
|
||||||
|
|
|
@ -1582,7 +1582,6 @@ class ResultViewModel2 : ViewModel() {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
val episodes = currentEpisodes[indexer]
|
|
||||||
val ranges = currentRanges[indexer]
|
val ranges = currentRanges[indexer]
|
||||||
|
|
||||||
if (ranges?.contains(range) != true) {
|
if (ranges?.contains(range) != true) {
|
||||||
|
@ -1594,7 +1593,6 @@ class ResultViewModel2 : ViewModel() {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
val size = episodes?.size
|
|
||||||
val isMovie = currentResponse?.isMovie() == true
|
val isMovie = currentResponse?.isMovie() == true
|
||||||
currentIndex = indexer
|
currentIndex = indexer
|
||||||
currentRange = range
|
currentRange = range
|
||||||
|
@ -1604,6 +1602,7 @@ class ResultViewModel2 : ViewModel() {
|
||||||
text to r
|
text to r
|
||||||
} ?: emptyList())
|
} ?: emptyList())
|
||||||
|
|
||||||
|
val size = currentEpisodes[indexer]?.size
|
||||||
_episodesCountText.postValue(
|
_episodesCountText.postValue(
|
||||||
some(
|
some(
|
||||||
if (isMovie) null else
|
if (isMovie) null else
|
||||||
|
@ -1683,9 +1682,12 @@ class ResultViewModel2 : ViewModel() {
|
||||||
generator = if (isMovie) {
|
generator = if (isMovie) {
|
||||||
getMovie()?.let { RepoLinkGenerator(listOf(it), page = currentResponse) }
|
getMovie()?.let { RepoLinkGenerator(listOf(it), page = currentResponse) }
|
||||||
} else {
|
} else {
|
||||||
episodes?.let { list ->
|
val episodes = currentEpisodes.filter { it.key.dubStatus == indexer.dubStatus }
|
||||||
RepoLinkGenerator(list, page = currentResponse)
|
.toList()
|
||||||
}
|
.sortedBy { it.first.season }
|
||||||
|
.flatMap { it.second }
|
||||||
|
|
||||||
|
RepoLinkGenerator(episodes, page = currentResponse)
|
||||||
}
|
}
|
||||||
|
|
||||||
if (isMovie) {
|
if (isMovie) {
|
||||||
|
|
Loading…
Reference in a new issue