Skip to content
Snippets Groups Projects
Commit 8e71e2a9 authored by Duncan McNamara's avatar Duncan McNamara
Browse files

Benchmark: fix landscape orientation

parent 0c643c75
No related branches found
No related tags found
1 merge request!2021Benchmark: fix landscape orientation
Pipeline #530823 passed with stage
in 6 minutes and 52 seconds
......@@ -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)
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment