[Android] AboutActivity: don't hardcode About and Licence

Edward Wang git at videolan.org
Mon Jun 25 19:58:47 CEST 2012


android | branch: master | Edward Wang <edward.c.wang at compdigitec.com> | Mon Jun 25 13:33:54 2012 -0400| [13a86a2ae07198c16dedd8b4fff9bcafa4807989] | committer: Edward Wang

AboutActivity: don't hardcode About and Licence

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

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

diff --git a/vlc-android/src/org/videolan/vlc/gui/AboutActivity.java b/vlc-android/src/org/videolan/vlc/gui/AboutActivity.java
index 21df17f..cb93916 100644
--- a/vlc-android/src/org/videolan/vlc/gui/AboutActivity.java
+++ b/vlc-android/src/org/videolan/vlc/gui/AboutActivity.java
@@ -74,11 +74,11 @@ public class AboutActivity extends FragmentActivity implements OnTabChangeListen
         mTabHost.setup();
         TabHost.TabSpec tab_main = mTabHost.newTabSpec("main");
         tab_main.setContent(dcf);
-        tab_main.setIndicator("About");
+        tab_main.setIndicator(getResources().getText(R.string.about));
         mTabHost.addTab(tab_main);
         TabHost.TabSpec tab_licence = mTabHost.newTabSpec("licence");
         tab_licence.setContent(dcf);
-        tab_licence.setIndicator("Licence");
+        tab_licence.setIndicator(getResources().getText(R.string.licence));
         mTabHost.addTab(tab_licence);
 
         for(int i = 0; i < mTabHost.getTabWidget().getChildCount(); i++) {



More information about the Android mailing list