[Android] [PATCH 3/3] Video Player: set ui visibility on DecorView (cosmetic)
Thomas Guillem
thomas.guillem at gmail.com
Thu Oct 2 09:26:42 CEST 2014
---
vlc-android/src/org/videolan/vlc/gui/video/VideoPlayerActivity.java | 5 ++---
1 file changed, 2 insertions(+), 3 deletions(-)
diff --git a/vlc-android/src/org/videolan/vlc/gui/video/VideoPlayerActivity.java b/vlc-android/src/org/videolan/vlc/gui/video/VideoPlayerActivity.java
index 78d806d..4dccca7 100644
--- a/vlc-android/src/org/videolan/vlc/gui/video/VideoPlayerActivity.java
+++ b/vlc-android/src/org/videolan/vlc/gui/video/VideoPlayerActivity.java
@@ -278,7 +278,7 @@ public class VideoPlayerActivity extends Activity implements IVideoPlayer {
setContentView(mPresentation == null ? R.layout.player : R.layout.player_remote_control);
if (LibVlcUtil.isICSOrLater())
- getWindow().getDecorView().findViewById(android.R.id.content).setOnSystemUiVisibilityChangeListener(
+ getWindow().getDecorView().setOnSystemUiVisibilityChangeListener(
new OnSystemUiVisibilityChangeListener() {
@Override
public void onSystemUiVisibilityChange(int visibility) {
@@ -1744,8 +1744,7 @@ public class VideoPlayerActivity extends Activity implements IVideoPlayer {
} else {
visibility |= View.SYSTEM_UI_FLAG_VISIBLE;
}
- mSurface.setSystemUiVisibility(visibility);
- mSubtitlesSurface.setSystemUiVisibility(visibility);
+ getWindow().getDecorView().setSystemUiVisibility(visibility);
}
private void updateOverlayPausePlay() {
--
2.1.0
More information about the Android
mailing list