[Android] avoid hardcoded strings

Sébastien Toque git at videolan.org
Thu May 15 13:59:43 CEST 2014


vlc-ports/android | branch: master | Sébastien Toque <xilasz at gmail.com> | Thu May 15 13:56:37 2014 +0200| [abaa889f8a2186931da470486c8c5a07c09131d9] | committer: Adrien Maglo

avoid hardcoded strings

Signed-off-by: Adrien Maglo <magsoft at videolan.org>

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

 .../src/org/videolan/vlc/gui/audio/AudioAlbumsSongsFragment.java   |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/vlc-android/src/org/videolan/vlc/gui/audio/AudioAlbumsSongsFragment.java b/vlc-android/src/org/videolan/vlc/gui/audio/AudioAlbumsSongsFragment.java
index 4c19645..f1eb7e9 100644
--- a/vlc-android/src/org/videolan/vlc/gui/audio/AudioAlbumsSongsFragment.java
+++ b/vlc-android/src/org/videolan/vlc/gui/audio/AudioAlbumsSongsFragment.java
@@ -132,8 +132,8 @@ public class AudioAlbumsSongsFragment extends SherlockFragment {
 
         mTabHost.setup();
 
-        addNewTab(mTabHost, "albums", "Albums");
-        addNewTab(mTabHost, "songs", "Songs");
+        addNewTab(mTabHost, "albums", v.getResources().getString(R.string.albums));
+        addNewTab(mTabHost, "songs", v.getResources().getString(R.string.songs));
 
         mTabHost.setCurrentTab(mCurrentTab);
         mFlingViewGroup.snapToScreen(mCurrentTab);



More information about the Android mailing list