[Android] Fix 'show last video' option being hidden

Geoffrey Métais git at videolan.org
Fri Mar 4 18:08:25 CET 2016


vlc-android | branch: master | Geoffrey Métais <geoffrey.metais at gmail.com> | Fri Mar  4 18:07:56 2016 +0100| [2eb26a190a2157892ef2252b66b19af28f096020] | committer: Geoffrey Métais

Fix 'show last video' option being hidden

> https://code.videolan.org/videolan/vlc-android/commit/2eb26a190a2157892ef2252b66b19af28f096020
---

 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 14c3f7f..a9f4cd0 100644
--- a/vlc-android/src/org/videolan/vlc/gui/MainActivity.java
+++ b/vlc-android/src/org/videolan/vlc/gui/MainActivity.java
@@ -592,7 +592,7 @@ public class MainActivity extends AudioPlayerContainerActivity implements Search
             menu.findItem(R.id.ml_menu_save).setVisible(false);
         if (current instanceof IHistory)
             menu.findItem(R.id.ml_menu_clean).setVisible(!((IHistory) current).isEmpty());
-        boolean showLast = current instanceof AudioBrowserFragment || (current instanceof VideoGridFragment && mSettings.getString(PreferencesActivity.VIDEO_LAST, null) != null);
+        boolean showLast = current instanceof AudioBrowserFragment || current instanceof VideoGridFragment;
         menu.findItem(R.id.ml_menu_last_playlist).setVisible(showLast);
         return true;
     }



More information about the Android mailing list