Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Open sidebar
Ewout ter Hoeven
VLC-Android
Commits
08936b83
Commit
08936b83
authored
Oct 21, 2014
by
Alexandre Perraud
Committed by
Jean-Baptiste Kempf
Oct 21, 2014
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Video : Restore the correct orientation in sensor-locked mode
Signed-off-by:
Jean-Baptiste Kempf
<
jb@videolan.org
>
parent
4967f411
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
0 deletions
+5
-0
vlc-android/src/org/videolan/vlc/gui/video/VideoPlayerActivity.java
...d/src/org/videolan/vlc/gui/video/VideoPlayerActivity.java
+5
-0
No files found.
vlc-android/src/org/videolan/vlc/gui/video/VideoPlayerActivity.java
View file @
08936b83
...
...
@@ -181,6 +181,7 @@ public class VideoPlayerActivity extends Activity implements IVideoPlayer {
private
boolean
mEnableCloneMode
;
private
boolean
mDisplayRemainingTime
=
false
;
private
int
mScreenOrientation
;
private
int
mScreenOrientationLock
;
private
ImageButton
mAudioTrack
;
private
ImageButton
mSubtitle
;
private
ImageButton
mLock
;
...
...
@@ -576,6 +577,9 @@ public class VideoPlayerActivity extends Activity implements IVideoPlayer {
// Listen for changes to media routes.
mediaRouterAddCallback
(
true
);
}
if
(
mIsLocked
&&
mScreenOrientation
==
ActivityInfo
.
SCREEN_ORIENTATION_SENSOR
)
setRequestedOrientation
(
mScreenOrientationLock
);
}
/**
...
...
@@ -818,6 +822,7 @@ public class VideoPlayerActivity extends Activity implements IVideoPlayer {
setRequestedOrientation
(
14
/* SCREEN_ORIENTATION_LOCKED */
);
else
setRequestedOrientation
(
getScreenOrientation
());
mScreenOrientationLock
=
getScreenOrientation
();
}
showInfo
(
R
.
string
.
locked
,
1000
);
mLock
.
setBackgroundResource
(
R
.
drawable
.
ic_locked
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment