[Android] GUI: disable the sliding menu when the audio player is fully shown
Adrien Maglo
git at videolan.org
Mon Mar 3 10:33:45 CET 2014
vlc-ports/android | branch: master | Adrien Maglo <magsoft at videolan.org> | Mon Mar 3 09:53:05 2014 +0100| [95a643fbb50860ee6e95eb1ce1a929d4731a5fcf] | committer: Adrien Maglo
GUI: disable the sliding menu when the audio player is fully shown
> http://git.videolan.org/gitweb.cgi/vlc-ports/android.git/?a=commit;h=95a643fbb50860ee6e95eb1ce1a929d4731a5fcf
---
vlc-android/src/org/videolan/vlc/gui/MainActivity.java | 3 +++
1 file changed, 3 insertions(+)
diff --git a/vlc-android/src/org/videolan/vlc/gui/MainActivity.java b/vlc-android/src/org/videolan/vlc/gui/MainActivity.java
index 55488eb..e6148e7 100644
--- a/vlc-android/src/org/videolan/vlc/gui/MainActivity.java
+++ b/vlc-android/src/org/videolan/vlc/gui/MainActivity.java
@@ -892,16 +892,19 @@ public class MainActivity extends SherlockFragmentActivity {
public void onPanelOpened() {
mSlidingPane.setShadowResource(R.drawable.mini_player_top_shadow);
mAudioPlayer.setHeaderVisibilities(false, false, true, true, true);
+ mMenu.setSlidingEnabled(true);
}
@Override
public void onPanelOpenedEntirely() {
mSlidingPane.setShadowDrawable(null);
+ mMenu.setSlidingEnabled(true);
}
@Override
public void onPanelClosed() {
mAudioPlayer.setHeaderVisibilities(true, true, false, false, false);
+ mMenu.setSlidingEnabled(false);
}
};
More information about the Android
mailing list