[Android] Fix selection restore

Geoffrey Métais git at videolan.org
Thu Nov 26 10:55:08 CET 2015


vlc-ports/android | branch: master | Geoffrey Métais <geoffrey.metais at gmail.com> | Thu Nov 26 10:54:31 2015 +0100| [f53d230922e1924b705ade121882de675128a802] | committer: Geoffrey Métais

Fix selection restore

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

 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 9a988a9..62076ae 100644
--- a/vlc-android/src/org/videolan/vlc/gui/MainActivity.java
+++ b/vlc-android/src/org/videolan/vlc/gui/MainActivity.java
@@ -162,7 +162,7 @@ public class MainActivity extends AudioPlayerContainerActivity implements Search
 
         if (savedInstanceState != null){
             mCurrentFragment = savedInstanceState.getInt("current");
-            if (mCurrentFragment <= 0)
+            if (mCurrentFragment > 0)
                 mNavigationView.setCheckedItem(mCurrentFragment);
         }
 



More information about the Android mailing list