aboutsummaryrefslogtreecommitdiff
path: root/subsonic-android
diff options
context:
space:
mode:
authorScott Jackson <daneren2005@gmail.com>2013-05-26 09:38:15 -0700
committerScott Jackson <daneren2005@gmail.com>2013-05-26 09:38:15 -0700
commit3cf0694d2c83a1574f2e365cd89418bc8baaaa02 (patch)
treec3c3a648eb41d938503a00a37beb7f9db5df49c0 /subsonic-android
parenta8a70fc6ff52cda8abbf03c3d480e5bec96243a6 (diff)
downloaddsub-3cf0694d2c83a1574f2e365cd89418bc8baaaa02.tar.gz
dsub-3cf0694d2c83a1574f2e365cd89418bc8baaaa02.tar.bz2
dsub-3cf0694d2c83a1574f2e365cd89418bc8baaaa02.zip
Use resource string instead of hard code
Diffstat (limited to 'subsonic-android')
-rw-r--r--subsonic-android/src/github/daneren2005/dsub/activity/MainActivity.java8
1 files changed, 4 insertions, 4 deletions
diff --git a/subsonic-android/src/github/daneren2005/dsub/activity/MainActivity.java b/subsonic-android/src/github/daneren2005/dsub/activity/MainActivity.java
index 8a9d1b14..44ee3b4b 100644
--- a/subsonic-android/src/github/daneren2005/dsub/activity/MainActivity.java
+++ b/subsonic-android/src/github/daneren2005/dsub/activity/MainActivity.java
@@ -149,12 +149,12 @@ public class MainActivity extends SubsonicActivity {
viewPager.setAdapter(pagerAdapter);
viewPager.setOnPageChangeListener(pagerAdapter);
- addTab("Home", MainFragment.class, null);
- addTab("Library", SelectArtistFragment.class, null);
- addTab("Playlists", SelectPlaylistFragment.class, null);
+ addTab(R.string.button_bar_home, MainFragment.class, null);
+ addTab(R.string.button_bar_browse, SelectArtistFragment.class, null);
+ addTab(R.string.button_bar_playlists, SelectPlaylistFragment.class, null);
SharedPreferences prefs = Util.getPreferences(this);
if(prefs.getBoolean(Constants.PREFERENCES_KEY_CHAT_ENABLED, true)) {
- addTab("Chat", ChatFragment.class, null);
+ addTab(R.string.button_bar_chat, ChatFragment.class, null);
}
getSupportActionBar().setDisplayHomeAsUpEnabled(false);