[Android] init browse MenuItem properly

Sébastien Toque git at videolan.org
Sun Jun 24 12:03:31 CEST 2012


android | branch: master | Sébastien Toque <xilasz at gmail.com> | Sun Jun 24 12:02:59 2012 +0200| [c034fc3a59a63fb04492f28cf0ee50dd4ec4c212] | committer: Sébastien Toque

init browse MenuItem properly

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

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

diff --git a/vlc-android/src/org/videolan/vlc/gui/MainActivity.java b/vlc-android/src/org/videolan/vlc/gui/MainActivity.java
index 1ce1c70..d5823a8 100644
--- a/vlc-android/src/org/videolan/vlc/gui/MainActivity.java
+++ b/vlc-android/src/org/videolan/vlc/gui/MainActivity.java
@@ -220,6 +220,8 @@ public class MainActivity extends SherlockFragmentActivity {
     public boolean onCreateOptionsMenu(Menu menu) {
         MenuInflater inflater = getSupportMenuInflater();
         inflater.inflate(R.menu.media_library, menu);
+        MenuItem browse = menu.findItem(R.id.ml_menu_browse);
+        browse.setTitle(mMediaLibraryActive ? R.string.directories : R.string.media_library);
         return super.onCreateOptionsMenu(menu);
     }
 



More information about the Android mailing list