Commit 39ee6500 authored by Edward Wang's avatar Edward Wang
Browse files

Update menu text for media/dir mode dynamically

parent e5d241d0
...@@ -92,6 +92,7 @@ ...@@ -92,6 +92,7 @@
<string name="open_mrl">Open MRL</string> <string name="open_mrl">Open MRL</string>
<string name="open_mrl_dialog_title">Open network stream</string> <string name="open_mrl_dialog_title">Open network stream</string>
<string name="open_mrl_dialog_msg">Enter network MRL: e.g. http://, mms:// or rtsp://</string> <string name="open_mrl_dialog_msg">Enter network MRL: e.g. http://, mms:// or rtsp://</string>
<string name="media_library">Media library</string>
<!-- Preferences --> <!-- Preferences -->
<string name="preferences">Preferences</string> <string name="preferences">Preferences</string>
......
...@@ -275,6 +275,10 @@ public class MainActivity extends SherlockFragmentActivity { ...@@ -275,6 +275,10 @@ public class MainActivity extends SherlockFragmentActivity {
// Browse Folders // Browse Folders
case R.id.ml_menu_browse: case R.id.ml_menu_browse:
showDirectoryView(); showDirectoryView();
if(mMediaLibraryActive)
item.setTitle(R.string.directories);
else
item.setTitle(R.string.media_library);
break; break;
// Open MRL // Open MRL
case R.id.ml_menu_open_mrl: case R.id.ml_menu_open_mrl:
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment