[Android] Fix fragment tag on App resume

Geoffrey Métais git at videolan.org
Mon Nov 2 17:12:32 CET 2015


vlc-ports/android | branch: master | Geoffrey Métais <geoffrey.metais at gmail.com> | Mon Nov  2 17:08:39 2015 +0100| [e563158de00b773dc9922f99234ad2de48b4b69b] | committer: Geoffrey Métais

Fix fragment tag on App resume

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

 vlc-android/src/org/videolan/vlc/gui/MainActivity.java |    2 +-
 1 file changed, 1 insertion(+), 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 bd8a0a7..8cb5da5 100644
--- a/vlc-android/src/org/videolan/vlc/gui/MainActivity.java
+++ b/vlc-android/src/org/videolan/vlc/gui/MainActivity.java
@@ -273,7 +273,7 @@ public class MainActivity extends AudioPlayerContainerActivity implements Search
             mNavigationView.setCheckedItem(mCurrentFragment);
             Fragment ff = getFragment(mCurrentFragment);
             FragmentTransaction ft = getSupportFragmentManager().beginTransaction();
-            ft.replace(R.id.fragment_placeholder, ff, ID_VIDEO);
+            ft.replace(R.id.fragment_placeholder, ff, getTag(mCurrentFragment));
             ft.commit();
         }
     }



More information about the Android mailing list