Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
VLC-Android
Manage
Activity
Members
Labels
Plan
Issues
531
Issue boards
Milestones
Wiki
Code
Merge requests
14
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
VideoLAN
VLC-Android
Commits
8e71e2a9
Commit
8e71e2a9
authored
3 months ago
by
Duncan McNamara
Browse files
Options
Downloads
Patches
Plain Diff
Benchmark: fix landscape orientation
parent
0c643c75
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!2021
Benchmark: fix landscape orientation
Pipeline
#530823
passed with stage
in 6 minutes and 52 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
application/vlc-android/src/org/videolan/vlc/gui/video/benchmark/BenchActivity.kt
+3
-4
3 additions, 4 deletions
...src/org/videolan/vlc/gui/video/benchmark/BenchActivity.kt
with
3 additions
and
4 deletions
application/vlc-android/src/org/videolan/vlc/gui/video/benchmark/BenchActivity.kt
+
3
−
4
View file @
8e71e2a9
...
...
@@ -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
)
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment