[Android] Fix the video playback launched in windowed mode on OneUI 6

Nicolas Pomepuy git at videolan.org
Wed Feb 21 14:08:06 UTC 2024


vlc-android | branch: master | Nicolas Pomepuy <nicolas at videolabs.io> | Wed Feb 21 13:28:55 2024 +0100| [c87b0b30eb10ef1df36753f410f0875fb23d2728] | committer: Nicolas Pomepuy

Fix the video playback launched in windowed mode on OneUI 6

Fixes #3041

> https://code.videolan.org/videolan/vlc-android/commit/c87b0b30eb10ef1df36753f410f0875fb23d2728
---

 application/vlc-android/src/org/videolan/vlc/util/Util.kt | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/application/vlc-android/src/org/videolan/vlc/util/Util.kt b/application/vlc-android/src/org/videolan/vlc/util/Util.kt
index d2fce8a4cd..c0f78be262 100644
--- a/application/vlc-android/src/org/videolan/vlc/util/Util.kt
+++ b/application/vlc-android/src/org/videolan/vlc/util/Util.kt
@@ -82,7 +82,7 @@ object Util {
 
     fun getFullScreenBundle() = if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.N) {
         val options = ActivityOptions.makeBasic()
-        options.launchBounds = Rect(0, 0, 0, 0)
+        options.setLaunchBounds(null)
         options.toBundle()
     } else Bundle()
 



More information about the Android mailing list