[Android] Benchmark: fix landscape orientation
Duncan McNamara
git at videolan.org
Wed Nov 13 06:48:18 UTC 2024
vlc-android | branch: master | Duncan McNamara <dcn.mcnamara at gmail.com> | Tue Nov 5 16:33:00 2024 +0100| [8e71e2a9cf54d367fdbad2360d43f79834a89fc4] | committer: Duncan McNamara
Benchmark: fix landscape orientation
> https://code.videolan.org/videolan/vlc-android/commit/8e71e2a9cf54d367fdbad2360d43f79834a89fc4
---
.../src/org/videolan/vlc/gui/video/benchmark/BenchActivity.kt | 7 +++----
1 file changed, 3 insertions(+), 4 deletions(-)
diff --git a/application/vlc-android/src/org/videolan/vlc/gui/video/benchmark/BenchActivity.kt b/application/vlc-android/src/org/videolan/vlc/gui/video/benchmark/BenchActivity.kt
index d66e12b523..b48da44c7b 100644
--- a/application/vlc-android/src/org/videolan/vlc/gui/video/benchmark/BenchActivity.kt
+++ b/application/vlc-android/src/org/videolan/vlc/gui/video/benchmark/BenchActivity.kt
@@ -45,6 +45,7 @@ import org.videolan.tools.Settings
import org.videolan.vlc.PlaybackService
import org.videolan.vlc.R
import org.videolan.vlc.gui.helpers.restartMediaPlayer
+import org.videolan.vlc.gui.video.PlayerOrientationMode
import org.videolan.vlc.media.PlaylistManager
import java.io.*
@@ -206,10 +207,8 @@ class BenchActivity : ShallowVideoPlayer() {
}
}
- // blocking display in landscape orientation
- requestedOrientation = ActivityInfo.SCREEN_ORIENTATION_LANDSCAPE
- // Minimum apk for benchmark is 21, so this warning is a non-issue
- requestedOrientation = ActivityInfo.SCREEN_ORIENTATION_LOCKED
+ orientationMode = PlayerOrientationMode(true, ActivityInfo.SCREEN_ORIENTATION_LANDSCAPE)
+ requestedOrientation = getScreenOrientation(orientationMode)
this.registerReceiverCompat(broadcastReceiver, IntentFilter(ACTION_CONTINUE_BENCHMARK), true)
}
More information about the Android
mailing list