[Android] No hardcoded string for lock state

Geoffrey Métais git at videolan.org
Fri Apr 17 14:35:24 CEST 2015


vlc-ports/android | branch: master | Geoffrey Métais <geoffrey.metais at gmail.com> | Fri Apr 17 14:23:20 2015 +0200| [623a025c8a247c7771a5690d79fdff9b5fb9ef56] | committer: Geoffrey Métais

No hardcoded string for lock state

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

 vlc-android/res/values/strings.xml                                  |    1 +
 vlc-android/src/org/videolan/vlc/gui/video/VideoPlayerActivity.java |    2 +-
 2 files changed, 2 insertions(+), 1 deletion(-)

diff --git a/vlc-android/res/values/strings.xml b/vlc-android/res/values/strings.xml
index a9113e5..f509e13 100644
--- a/vlc-android/res/values/strings.xml
+++ b/vlc-android/res/values/strings.xml
@@ -342,6 +342,7 @@
     <!--Accessibility-->
     <string name="more_actions">More Actions</string>
     <string name="move">Move</string>
+    <string name="back_quit_lock">Press back again to quit video</string>
 
     <string-array name="hardware_acceleration_list">
         <item>@string/automatic</item>
diff --git a/vlc-android/src/org/videolan/vlc/gui/video/VideoPlayerActivity.java b/vlc-android/src/org/videolan/vlc/gui/video/VideoPlayerActivity.java
index 036bc57..b52ced7 100644
--- a/vlc-android/src/org/videolan/vlc/gui/video/VideoPlayerActivity.java
+++ b/vlc-android/src/org/videolan/vlc/gui/video/VideoPlayerActivity.java
@@ -938,7 +938,7 @@ public class VideoPlayerActivity extends ActionBarActivity implements IVideoPlay
         if (mLockBackButton) {
             mLockBackButton = false;
             mHandler.sendEmptyMessageDelayed(RESET_BACK_LOCK, 2000);
-            Toast.makeText(this, "Press back again to quit video", Toast.LENGTH_SHORT).show();
+            Toast.makeText(this, getString(R.string.back_quit_lock), Toast.LENGTH_SHORT).show();
         } else
             super.onBackPressed();
     }



More information about the Android mailing list