[Android] Video Player: set ui visibility on DecorView (cosmetic)
Thomas Guillem
git at videolan.org
Fri Oct 3 14:23:51 CEST 2014
vlc-ports/android | branch: master | Thomas Guillem <thomas.guillem at gmail.com> | Thu Oct 2 09:26:42 2014 +0200| [962a4189e9b24560205a776e343f5bf1c760b667] | committer: Jean-Baptiste Kempf
Video Player: set ui visibility on DecorView (cosmetic)
Signed-off-by: Jean-Baptiste Kempf <jb at videolan.org>
> http://git.videolan.org/gitweb.cgi/vlc-ports/android.git/?a=commit;h=962a4189e9b24560205a776e343f5bf1c760b667
---
.../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 f75a26b..5edd94a 100644
--- a/vlc-android/src/org/videolan/vlc/gui/video/VideoPlayerActivity.java
+++ b/vlc-android/src/org/videolan/vlc/gui/video/VideoPlayerActivity.java
@@ -281,7 +281,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) {
@@ -1837,8 +1837,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() {
More information about the Android
mailing list