[Android] Revert "Keep video player fullscreen on chromebooks"

Geoffrey Métais git at videolan.org
Mon Sep 4 10:14:32 CEST 2017


vlc-android | branch: master | Geoffrey Métais <geoffrey.metais at gmail.com> | Fri Sep  1 17:51:06 2017 +0200| [b7f37eb260747da8c385e7f8064bd9930a244391] | committer: Geoffrey Métais

Revert "Keep video player fullscreen on chromebooks"

This reverts commit cf45cca713a7dc240081d2761d1129e3b695d91e.

Chromebooks fullscreen mode is fine

> https://code.videolan.org/videolan/vlc-android/commit/b7f37eb260747da8c385e7f8064bd9930a244391
---

 .../src/org/videolan/vlc/gui/video/VideoPlayerActivity.java        | 7 ++-----
 1 file changed, 2 insertions(+), 5 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 55e42e8b0..b058b0e43 100644
--- a/vlc-android/src/org/videolan/vlc/gui/video/VideoPlayerActivity.java
+++ b/vlc-android/src/org/videolan/vlc/gui/video/VideoPlayerActivity.java
@@ -2857,8 +2857,7 @@ public class VideoPlayerActivity extends AppCompatActivity implements IVLCVout.C
                 UiTools.setViewVisibility(mPlaylistNext, View.VISIBLE);
                 UiTools.setViewVisibility(mPlaylistPrevious, View.VISIBLE);
             }
-            if (!AndroidDevices.isChromeBook)
-                dimStatusBar(false);
+            dimStatusBar(false);
             mOverlayProgress.setVisibility(View.VISIBLE);
             if (mPresentation != null)
                 mOverlayBackground.setVisibility(View.VISIBLE);
@@ -2950,8 +2949,7 @@ public class VideoPlayerActivity extends AppCompatActivity implements IVLCVout.C
                 UiTools.setViewVisibility(mPlaylistNext, View.INVISIBLE);
                 UiTools.setViewVisibility(mPlaylistPrevious, View.INVISIBLE);
             mShowing = false;
-            if (!AndroidDevices.isChromeBook)
-                dimStatusBar(true);
+            dimStatusBar(true);
         } else if (!fromUser) {
             /*
              * Try to hide the Nav Bar again.
@@ -2966,7 +2964,6 @@ public class VideoPlayerActivity extends AppCompatActivity implements IVLCVout.C
      * Dim the status bar and/or navigation icons when needed on Android 3.x.
      * Hide it on Android 4.0 and later
      */
-    @SuppressWarnings("deprecation")
     @TargetApi(Build.VERSION_CODES.KITKAT)
     private void dimStatusBar(boolean dim) {
         if (dim || mIsLocked)



More information about the Android mailing list