[Android] Ensure title visibility

Geoffrey Métais git at videolan.org
Fri Apr 29 15:25:32 CEST 2016


vlc-android | branch: master | Geoffrey Métais <geoffrey.metais at gmail.com> | Fri Apr 29 15:08:22 2016 +0200| [433ca0dbb408eba52a30c5f6223a1701ca6e05a5] | committer: Geoffrey Métais

Ensure title visibility

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

 vlc-android/src/org/videolan/vlc/gui/video/VideoPlayerActivity.java | 6 ++++++
 1 file changed, 6 insertions(+)

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 8dbd75d..0e07cbc 100644
--- a/vlc-android/src/org/videolan/vlc/gui/video/VideoPlayerActivity.java
+++ b/vlc-android/src/org/videolan/vlc/gui/video/VideoPlayerActivity.java
@@ -2630,6 +2630,10 @@ public class VideoPlayerActivity extends AppCompatActivity implements IVLCVout.C
      */
     @TargetApi(Build.VERSION_CODES.KITKAT)
     private void dimStatusBar(boolean dim) {
+        if (dim || mIsLocked)
+            mActionBar.hide();
+        else
+            mActionBar.show();
         if (!AndroidUtil.isHoneycombOrLater() || mIsNavMenu)
             return;
         int visibility = 0;
@@ -2653,6 +2657,7 @@ public class VideoPlayerActivity extends AppCompatActivity implements IVLCVout.C
                     visibility |= View.SYSTEM_UI_FLAG_FULLSCREEN;
             }
         } else {
+            mActionBar.show();
             getWindow().clearFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN);
             if (AndroidUtil.isICSOrLater())
                 visibility |= View.SYSTEM_UI_FLAG_VISIBLE;
@@ -2670,6 +2675,7 @@ public class VideoPlayerActivity extends AppCompatActivity implements IVLCVout.C
             return;
         int visibility = 0;
         int navbar = 0;
+        mActionBar.show();
 
         if (AndroidUtil.isJellyBeanOrLater()) {
             visibility = View.SYSTEM_UI_FLAG_LAYOUT_STABLE | View.SYSTEM_UI_FLAG_LAYOUT_FULLSCREEN;



More information about the Android mailing list