mirror of
https://gitlab.futo.org/videostreaming/grayjay.git
synced 2026-05-16 04:52:39 +02:00
Loader game visible now allows going into pip automatically.
This commit is contained in:
+4
-1
@@ -336,7 +336,7 @@ class VideoDetailView : ConstraintLayout {
|
|||||||
!StateCasting.instance.isCasting &&
|
!StateCasting.instance.isCasting &&
|
||||||
Settings.instance.playback.isBackgroundPictureInPicture() &&
|
Settings.instance.playback.isBackgroundPictureInPicture() &&
|
||||||
!isAudioOnlyUserAction &&
|
!isAudioOnlyUserAction &&
|
||||||
isPlaying
|
(isPlaying || _loaderGameVisible)
|
||||||
|
|
||||||
val onShouldEnterPictureInPictureChanged = Event0();
|
val onShouldEnterPictureInPictureChanged = Event0();
|
||||||
|
|
||||||
@@ -550,6 +550,9 @@ class VideoDetailView : ConstraintLayout {
|
|||||||
|
|
||||||
val handleLoaderGameVisibilityChanged = { b: Boolean ->
|
val handleLoaderGameVisibilityChanged = { b: Boolean ->
|
||||||
_loaderGameVisible = b
|
_loaderGameVisible = b
|
||||||
|
fragment.lifecycleScope.launch(Dispatchers.Main) {
|
||||||
|
onShouldEnterPictureInPictureChanged.emit()
|
||||||
|
}
|
||||||
updateResumeVisibilityFor(lastPositionMilliseconds)
|
updateResumeVisibilityFor(lastPositionMilliseconds)
|
||||||
}
|
}
|
||||||
_player.loaderGameVisibilityChanged.subscribe(handleLoaderGameVisibilityChanged)
|
_player.loaderGameVisibilityChanged.subscribe(handleLoaderGameVisibilityChanged)
|
||||||
|
|||||||
Reference in New Issue
Block a user