[Android] Hide the mini player when switching tabs

Edward Wang git at videolan.org
Sat Jan 11 03:56:56 CET 2014


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

Hide the mini player when switching tabs

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

 vlc-android/src/org/videolan/vlc/gui/MainActivity.java |    5 ++++-
 1 file changed, 4 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..623c95e 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,9 @@ public class MainActivity extends SherlockFragmentActivity {
                  */
                 getSupportFragmentManager().popBackStack(null, FragmentManager.POP_BACK_STACK_INCLUSIVE);
 
+                /* Hide the mini player */
+                hideMiniPlayer();
+
                 /* 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