[Android] Casting preferences: extract string resource

Geoffrey Métais git at videolan.org
Thu Jan 24 13:55:43 CET 2019


vlc-android | branch: master | Geoffrey Métais <geoffrey.metais at gmail.com> | Thu Jan 24 13:55:27 2019 +0100| [50512bd11d37d505bbd7911c92c989dab8382f30] | committer: Geoffrey Métais

Casting preferences: extract string resource

> https://code.videolan.org/videolan/vlc-android/commit/50512bd11d37d505bbd7911c92c989dab8382f30
---

 vlc-android/res/values/strings.xml          | 1 +
 vlc-android/res/xml/preferences_casting.xml | 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 bd984e3e1..670116b07 100644
--- a/vlc-android/res/values/strings.xml
+++ b/vlc-android/res/values/strings.xml
@@ -386,6 +386,7 @@
     <string name="audio_ducking_title">Lower VLC volume on notifications</string>
     <string name="audio_ducking_summary">Helps to hear audio notifications, navigation instructions or assistant talking</string>
     <string name="casting_category">Casting</string>
+    <string name="casting_switch_title">Enable wireless casting</string>
     <string name="casting_passthrough_title">Audio Passthrough</string>
     <string name="casting_passthrough_summary">Let your TV manage audio rendering</string>
     <string name="casting_conversion_quality_title">Conversion quality</string>
diff --git a/vlc-android/res/xml/preferences_casting.xml b/vlc-android/res/xml/preferences_casting.xml
index fb113df23..c48481966 100644
--- a/vlc-android/res/xml/preferences_casting.xml
+++ b/vlc-android/res/xml/preferences_casting.xml
@@ -9,7 +9,7 @@
             android:defaultValue="true"
             android:switchTextOff="Disabled"
             android:switchTextOn="Enabled"
-            android:title="Enable wireless casting" />
+            android:title="@string/casting_switch_title" />
         <CheckBoxPreference
             android:key="casting_passthrough"
             android:defaultValue="false"



More information about the Android mailing list