[Android] Improve disable track wording
Nicolas Pomepuy
git at videolan.org
Fri Jun 3 11:30:21 UTC 2022
vlc-android | branch: master | Nicolas Pomepuy <nicolas at videolabs.io> | Mon May 23 09:41:27 2022 +0200| [26378ff1cf85a7237aab76f01dd5c9c6b36518f9] | committer: Nicolas Pomepuy
Improve disable track wording
> https://code.videolan.org/videolan/vlc-android/commit/26378ff1cf85a7237aab76f01dd5c9c6b36518f9
---
application/resources/src/main/res/values/strings.xml | 1 +
application/vlc-android/res/layout/video_track_item.xml | 2 +-
2 files changed, 2 insertions(+), 1 deletion(-)
diff --git a/application/resources/src/main/res/values/strings.xml b/application/resources/src/main/res/values/strings.xml
index 2378bb644..4aa258076 100644
--- a/application/resources/src/main/res/values/strings.xml
+++ b/application/resources/src/main/res/values/strings.xml
@@ -973,6 +973,7 @@
<string name="seek_forward_content_description">Seek %s seconds forwards</string>
<string name="open_vlc">Open VLC</string>
<string name="playing">Playing</string>
+ <string name="disable_track">Disable track</string>
diff --git a/application/vlc-android/res/layout/video_track_item.xml b/application/vlc-android/res/layout/video_track_item.xml
index 098039ad7..e5331810f 100644
--- a/application/vlc-android/res/layout/video_track_item.xml
+++ b/application/vlc-android/res/layout/video_track_item.xml
@@ -45,7 +45,7 @@
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_marginStart="16dp"
- android:text="@{track.name}"
+ android:text="@{track.id == -1 ? @string/disable_track : track.name}"
android:textColor="@{selected ? @color/white : @color/white_transparent_50}"
android:maxLines="1"
android:singleLine="true"
More information about the Android
mailing list