[Android] Audio browser: do not save the albums songs fragment as the current fragment

Adrien Maglo git at videolan.org
Mon Jan 27 21:51:51 CET 2014


vlc-ports/android | branch: master | Adrien Maglo <magsoft at videolan.org> | Mon Jan 27 21:51:22 2014 +0100| [924894a87522ae032bab8592c4060d598a712682] | committer: Adrien Maglo

Audio browser: do not save the albums songs fragment as the current fragment

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

 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 c776de5..a7fdafa 100644
--- a/vlc-android/src/org/videolan/vlc/gui/MainActivity.java
+++ b/vlc-android/src/org/videolan/vlc/gui/MainActivity.java
@@ -377,6 +377,9 @@ public class MainActivity extends SherlockFragmentActivity {
         MediaLibrary.getInstance(this).stop();
         /* Save the tab status in pref */
         SharedPreferences.Editor editor = getSharedPreferences("MainActivity", MODE_PRIVATE).edit();
+        /* Do not save the albums songs fragment as the current fragment. */
+        if (mCurrentFragment.equals("albumsSongs"))
+            mCurrentFragment = "audio";
         editor.putString("fragment", mCurrentFragment);
         editor.commit();
 



More information about the Android mailing list