[Android] [PATCH 1/2] Video Player: always set FLAG_LOW_PROFILE on hide

Thomas Guillem thomas.guillem at gmail.com
Fri Oct 3 17:42: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 5edd94a..27c9507 100644
--- a/vlc-android/src/org/videolan/vlc/gui/video/VideoPlayerActivity.java
+++ b/vlc-android/src/org/videolan/vlc/gui/video/VideoPlayerActivity.java
@@ -1827,9 +1827,8 @@ public class VideoPlayerActivity extends Activity implements IVideoPlayer {
 
         int visibility = layout;
         if (dim) {
-            if (AndroidDevices.hasCombBar()) {
-                visibility |= View.SYSTEM_UI_FLAG_LOW_PROFILE;
-            } else {
+            visibility |= View.SYSTEM_UI_FLAG_LOW_PROFILE;
+            if (!AndroidDevices.hasCombBar()) {
                 visibility |= View.SYSTEM_UI_FLAG_HIDE_NAVIGATION;
                 if (mOverlayUseStatusBar)
                     visibility |= View.SYSTEM_UI_FLAG_FULLSCREEN;
-- 
2.1.0



More information about the Android mailing list