[Android] MainActivity: fix the display of the sort by menu

Adrien Maglo git at videolan.org
Wed Mar 12 13:16:19 CET 2014


vlc-ports/android | branch: master | Adrien Maglo <magsoft at videolan.org> | Wed Mar 12 13:16:14 2014 +0100| [9f46c1333c6564df195de23e816f7718e22c1ad8] | committer: Adrien Maglo

MainActivity: fix the display of the sort by menu

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

 vlc-android/src/org/videolan/vlc/gui/MainActivity.java |    4 ++++
 1 file changed, 4 insertions(+)

diff --git a/vlc-android/src/org/videolan/vlc/gui/MainActivity.java b/vlc-android/src/org/videolan/vlc/gui/MainActivity.java
index d27cff6..6ae5637 100644
--- a/vlc-android/src/org/videolan/vlc/gui/MainActivity.java
+++ b/vlc-android/src/org/videolan/vlc/gui/MainActivity.java
@@ -559,6 +559,10 @@ public class MainActivity extends SherlockFragmentActivity {
             menu.findItem(R.id.ml_menu_sortby).setEnabled(false);
             menu.findItem(R.id.ml_menu_sortby).setVisible(false);
         }
+        else {
+            menu.findItem(R.id.ml_menu_sortby).setEnabled(true);
+            menu.findItem(R.id.ml_menu_sortby).setVisible(true);
+        }
         // Enable the clear search history function for the search fragment.
         if (mCurrentFragment.equals("search"))
             menu.findItem(R.id.search_clear_history).setVisible(true);



More information about the Android mailing list