[Android] Change text (again) on Dual Display Mode

Alexandre Perraud git at videolan.org
Tue Apr 29 12:31:48 CEST 2014


vlc-ports/android | branch: master | Alexandre Perraud <4leyx4ndre at gmail.com> | Tue Apr 29 12:16:06 2014 +0200| [50023f410d65f24a4bea5bc20615774f1172e2e1] | committer: Jean-Baptiste Kempf

Change text (again) on Dual Display Mode

The previous text was not clear about the cloning (it's not only
displaying video on the other screen, it's a clone)
The previous text was too negative. :)
The previous was too Engrish :)

Signed-off-by: Jean-Baptiste Kempf <jb at videolan.org>

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

 vlc-android/res/values/strings.xml                             |    6 +++---
 vlc-android/res/xml/preferences.xml                            |    8 ++++----
 .../src/org/videolan/vlc/gui/video/VideoPlayerActivity.java    |    6 +++---
 3 files changed, 10 insertions(+), 10 deletions(-)

diff --git a/vlc-android/res/values/strings.xml b/vlc-android/res/values/strings.xml
index e060ae8..3f0ab25 100644
--- a/vlc-android/res/values/strings.xml
+++ b/vlc-android/res/values/strings.xml
@@ -255,9 +255,9 @@
     <string name="dump_logcat">Dump logcat log</string>
     <string name="dump_logcat_success">Logcat successfully dumped to %1$s!</string>
     <string name="dump_logcat_failure">Failed to dump logcat.</string>
-    <string name="enable_dual_display">Dual display mode</string>
-    <string name="enable_dual_display_summary">Display video on secondary displays connected via HDMI/Chromecast</string>
-    
+    <string name="enable_clone_mode">Prefer clone mode for Secondary Displays</string>
+    <string name="enable_clone_mode_summary">Clone the device screen without remote control when secondary displays are connected (HDMI/Miracast).</string>
+
     <string-array name="hardware_acceleration_list">
         <item>@string/automatic</item>
         <item>@string/hardware_acceleration_disabled</item>
diff --git a/vlc-android/res/xml/preferences.xml b/vlc-android/res/xml/preferences.xml
index 1c14a8e..4705f20 100644
--- a/vlc-android/res/xml/preferences.xml
+++ b/vlc-android/res/xml/preferences.xml
@@ -39,10 +39,10 @@
         <PreferenceScreen android:title="@string/interface_prefs_category" >
             <PreferenceCategory android:title="@string/interface_prefs_category" >
                 <CheckBoxPreference
-                    android:defaultValue="true"
-                    android:key="enable_dual_display"
-                    android:summary="@string/enable_dual_display_summary"
-                    android:title="@string/enable_dual_display" />
+                    android:defaultValue="false"
+                    android:key="enable_clone_mode"
+                    android:summary="@string/enable_clone_mode_summary"
+                    android:title="@string/enable_clone_mode" />
                 <CheckBoxPreference
                     android:defaultValue="true"
                     android:key="enable_brightness_gesture"
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 47c8aff..8cb48e3 100644
--- a/vlc-android/src/org/videolan/vlc/gui/video/VideoPlayerActivity.java
+++ b/vlc-android/src/org/videolan/vlc/gui/video/VideoPlayerActivity.java
@@ -166,7 +166,7 @@ public class VideoPlayerActivity extends Activity implements IVideoPlayer {
     private ImageButton mForward;
     private boolean mEnableJumpButtons;
     private boolean mEnableBrightnessGesture;
-    private boolean mEnableDualDisplay;
+    private boolean mEnableCloneMode;
     private boolean mDisplayRemainingTime = false;
     private int mScreenOrientation;
     private ImageButton mAudioTrack;
@@ -249,7 +249,7 @@ public class VideoPlayerActivity extends Activity implements IVideoPlayer {
 
         SharedPreferences pref = PreferenceManager.getDefaultSharedPreferences(this);
 
-        mEnableDualDisplay = pref.getBoolean("enable_dual_display", false);
+        mEnableCloneMode = pref.getBoolean("enable_clone_mode", false);
         createPresentation();
         setContentView(mPresentation == null ? R.layout.player : R.layout.player_remote_control);
 
@@ -1987,7 +1987,7 @@ public class VideoPlayerActivity extends Activity implements IVideoPlayer {
 
     @TargetApi(Build.VERSION_CODES.JELLY_BEAN_MR1)
     private void createPresentation() {
-        if (mMediaRouter == null || !mEnableDualDisplay)
+        if (mMediaRouter == null || mEnableCloneMode)
             return;
 
         // Get the current route and its presentation display.



More information about the Android mailing list