mirror of
https://gitlab.futo.org/videostreaming/grayjay.git
synced 2025-09-26 19:29:04 +00:00
Crashfix related to PiP #2041.
This commit is contained in:
parent
40c195d4a0
commit
c959b973fc
1 changed files with 8 additions and 4 deletions
|
@ -467,10 +467,14 @@ class VideoDetailFragment() : MainFragment() {
|
|||
activity?.enterPictureInPictureMode(params);
|
||||
}
|
||||
fun onPictureInPictureModeChanged(isInPictureInPictureMode: Boolean, isStop: Boolean, newConfig: Configuration) {
|
||||
if (isInPictureInPictureMode) {
|
||||
_viewDetail?.startPictureInPicture();
|
||||
} else if (isInPictureInPicture) {
|
||||
leavePictureInPictureMode(isStop);
|
||||
try {
|
||||
if (isInPictureInPictureMode) {
|
||||
_viewDetail?.startPictureInPicture();
|
||||
} else if (isInPictureInPicture) {
|
||||
leavePictureInPictureMode(isStop);
|
||||
}
|
||||
} catch (e: Throwable) {
|
||||
Logger.e(TAG, "Failed to handle onPictureInPictureModeChanged", e)
|
||||
}
|
||||
}
|
||||
fun leavePictureInPictureMode(isStop: Boolean) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue