diff options
author | Charles Lombardo <clombardo169@gmail.com> | 2023-09-17 23:20:58 +0200 |
---|---|---|
committer | Charles Lombardo <clombardo169@gmail.com> | 2023-09-17 23:33:33 +0200 |
commit | e3c546a1edb893539094fff6284ee0ebce269a64 (patch) | |
tree | d160628b8d628dd096d6d55e617356c6b3f3dc76 /src/android/app | |
parent | Merge pull request #11523 from t895/shader-workers (diff) | |
download | yuzu-e3c546a1edb893539094fff6284ee0ebce269a64.tar yuzu-e3c546a1edb893539094fff6284ee0ebce269a64.tar.gz yuzu-e3c546a1edb893539094fff6284ee0ebce269a64.tar.bz2 yuzu-e3c546a1edb893539094fff6284ee0ebce269a64.tar.lz yuzu-e3c546a1edb893539094fff6284ee0ebce269a64.tar.xz yuzu-e3c546a1edb893539094fff6284ee0ebce269a64.tar.zst yuzu-e3c546a1edb893539094fff6284ee0ebce269a64.zip |
Diffstat (limited to 'src/android/app')
-rw-r--r-- | src/android/app/src/main/java/org/yuzu/yuzu_emu/activities/EmulationActivity.kt | 8 |
1 files changed, 7 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 d4ae39661..e96a2059b 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 @@ -3,6 +3,7 @@ package org.yuzu.yuzu_emu.activities +import android.annotation.SuppressLint import android.app.Activity import android.app.PendingIntent import android.app.PictureInPictureParams @@ -397,6 +398,7 @@ class EmulationActivity : AppCompatActivity(), SensorEventListener { } } + @SuppressLint("UnspecifiedRegisterReceiverFlag") override fun onPictureInPictureModeChanged( isInPictureInPictureMode: Boolean, newConfig: Configuration @@ -409,7 +411,11 @@ class EmulationActivity : AppCompatActivity(), SensorEventListener { addAction(actionMute) addAction(actionUnmute) }.also { - registerReceiver(pictureInPictureReceiver, it) + if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.TIRAMISU) { + registerReceiver(pictureInPictureReceiver, it, RECEIVER_EXPORTED) + } else { + registerReceiver(pictureInPictureReceiver, it) + } } } else { try { |