[Android] Hide the mini player when switching tabs

Edward Wang git at videolan.org
Sat Jan 11 04:16:30 CET 2014


vlc-ports/android | branch: master | Edward Wang <edward.c.wang at compdigitec.com> | Fri Jan 10 21:56:43 2014 -0500| [eaca9a3c35380d976fcd093b212e8f36a114ab5b] | committer: Edward Wang

Hide the mini player when switching tabs

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

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

diff --git a/vlc-android/src/org/videolan/vlc/gui/MainActivity.java b/vlc-android/src/org/videolan/vlc/gui/MainActivity.java
index 5302555..5658039 100644
--- a/vlc-android/src/org/videolan/vlc/gui/MainActivity.java
+++ b/vlc-android/src/org/videolan/vlc/gui/MainActivity.java
@@ -1,7 +1,7 @@
 /*****************************************************************************
  * MainActivity.java
  *****************************************************************************
- * Copyright © 2011-2012 VLC authors and VideoLAN
+ * Copyright © 2011-2014 VLC authors and VideoLAN
  *
  * This program is free software; you can redistribute it and/or modify
  * it under the terms of the GNU General Public License as published by
@@ -215,6 +215,10 @@ public class MainActivity extends SherlockFragmentActivity {
                  */
                 getSupportFragmentManager().popBackStack(null, FragmentManager.POP_BACK_STACK_INCLUSIVE);
 
+                /* Hide the mini player */
+                if(mSlidingPane.getState() == mSlidingPane.STATE_CLOSED)
+                    mSlidingPane.openPane();
+
                 /* Switch the fragment */
                 FragmentTransaction ft = getSupportFragmentManager().beginTransaction();
                 ft.replace(R.id.fragment_placeholder, getFragment(entry.id), entry.id);



More information about the Android mailing list