summaryrefslogtreecommitdiffstats
path: root/src/android/app
diff options
context:
space:
mode:
authort895 <clombardo169@gmail.com>2023-11-15 00:11:38 +0100
committert895 <clombardo169@gmail.com>2023-11-15 00:11:38 +0100
commitfcd54c6479b15581ea01ba7d9dc4f25ac3265588 (patch)
treea365b2b1fd19f00fb20869d94b5eed64d6833759 /src/android/app
parentMerge pull request #12032 from liamwhite/fruit-compiler (diff)
downloadyuzu-fcd54c6479b15581ea01ba7d9dc4f25ac3265588.tar
yuzu-fcd54c6479b15581ea01ba7d9dc4f25ac3265588.tar.gz
yuzu-fcd54c6479b15581ea01ba7d9dc4f25ac3265588.tar.bz2
yuzu-fcd54c6479b15581ea01ba7d9dc4f25ac3265588.tar.lz
yuzu-fcd54c6479b15581ea01ba7d9dc4f25ac3265588.tar.xz
yuzu-fcd54c6479b15581ea01ba7d9dc4f25ac3265588.tar.zst
yuzu-fcd54c6479b15581ea01ba7d9dc4f25ac3265588.zip
Diffstat (limited to 'src/android/app')
-rw-r--r--src/android/app/src/main/java/org/yuzu/yuzu_emu/activities/EmulationActivity.kt4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/android/app/src/main/java/org/yuzu/yuzu_emu/activities/EmulationActivity.kt b/src/android/app/src/main/java/org/yuzu/yuzu_emu/activities/EmulationActivity.kt
index 054e4b755..f41d7bdbf 100644
--- a/src/android/app/src/main/java/org/yuzu/yuzu_emu/activities/EmulationActivity.kt
+++ b/src/android/app/src/main/java/org/yuzu/yuzu_emu/activities/EmulationActivity.kt
@@ -373,8 +373,10 @@ class EmulationActivity : AppCompatActivity(), SensorEventListener {
val pictureInPictureParamsBuilder = PictureInPictureParams.Builder()
.getPictureInPictureActionsBuilder().getPictureInPictureAspectBuilder()
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.S) {
+ val isEmulationActive = emulationViewModel.emulationStarted.value &&
+ !emulationViewModel.isEmulationStopping.value
pictureInPictureParamsBuilder.setAutoEnterEnabled(
- BooleanSetting.PICTURE_IN_PICTURE.boolean
+ BooleanSetting.PICTURE_IN_PICTURE.boolean && isEmulationActive
)
}
setPictureInPictureParams(pictureInPictureParamsBuilder.build())