[Android] Hide ActionBar when audio player is entirely open

Geoffrey Métais git at videolan.org
Fri Apr 10 14:51:38 CEST 2015


vlc-ports/android | branch: master | Geoffrey Métais <geoffrey.metais at gmail.com> | Fri Apr 10 12:10:52 2015 +0200| [456c7fc8e6a673c074d210260be2bf2cc502a961] | committer: Geoffrey Métais

Hide ActionBar when audio player is entirely open

Fixes rotation inconsistency

> http://git.videolan.org/gitweb.cgi/vlc-ports/android.git/?a=commit;h=456c7fc8e6a673c074d210260be2bf2cc502a961
---

 vlc-android/src/org/videolan/vlc/gui/MainActivity.java |    2 ++
 1 file changed, 2 insertions(+)

diff --git a/vlc-android/src/org/videolan/vlc/gui/MainActivity.java b/vlc-android/src/org/videolan/vlc/gui/MainActivity.java
index f24af92..37d20fc 100644
--- a/vlc-android/src/org/videolan/vlc/gui/MainActivity.java
+++ b/vlc-android/src/org/videolan/vlc/gui/MainActivity.java
@@ -279,6 +279,8 @@ public class MainActivity extends ActionBarActivity implements OnItemClickListen
         /* Load media items from database and storage */
         if (mScanNeeded)
             MediaLibrary.getInstance().loadMediaItems();
+        if (mSlidingPane.getState() == mSlidingPane.STATE_CLOSED)
+            mActionBar.hide();
    }
 
     @Override



More information about the Android mailing list