mirror of
https://github.com/recloudstream/cloudstream.git
synced 2024-08-15 01:53:11 +00:00
fix autohide
This commit is contained in:
parent
12de924559
commit
63465ed7a9
2 changed files with 10 additions and 0 deletions
|
@ -728,6 +728,15 @@ open class FullScreenPlayer : AbstractPlayerFragment() {
|
|||
private var currentTapIndex = 0
|
||||
protected fun autoHide() {
|
||||
currentTapIndex++
|
||||
delayHide()
|
||||
}
|
||||
|
||||
override fun playerStatusChanged() {
|
||||
super.playerStatusChanged()
|
||||
delayHide()
|
||||
}
|
||||
|
||||
private fun delayHide() {
|
||||
val index = currentTapIndex
|
||||
playerBinding?.playerHolder?.postDelayed({
|
||||
if (!isCurrentTouchValid && isShowing && index == currentTapIndex && player.getIsPlaying()) {
|
||||
|
|
|
@ -158,6 +158,7 @@ class GeneratorPlayer : FullScreenPlayer() {
|
|||
}
|
||||
|
||||
override fun playerStatusChanged() {
|
||||
super.playerStatusChanged()
|
||||
if (player.getIsPlaying()) {
|
||||
viewModel.forceClearCache = false
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue