[Android] Use real locales to store the preferred audio and spu tracks

Nicolas Pomepuy git at videolan.org
Tue Nov 2 13:10:20 UTC 2021


vlc-android | branch: master | Nicolas Pomepuy <nicolas at videolabs.io> | Fri Oct 15 07:12:06 2021 +0200| [452172c978f17ed84dff52ffaf062f7d2c6ebb91] | committer: Nicolas Pomepuy

Use real locales to store the preferred audio and spu tracks

The setting now uses the languages supported by the app.
The preferred track is then checked by ISO language and
no more with string comparison.

> https://code.videolan.org/videolan/vlc-android/commit/452172c978f17ed84dff52ffaf062f7d2c6ebb91
---

 .../television/ui/preferences/PreferencesAudio.kt  | 20 +++++--
 .../ui/preferences/PreferencesSubtitles.kt         | 16 ++++--
 .../vlc-android/res/xml/preferences_audio.xml      |  2 +-
 .../vlc-android/res/xml/preferences_subtitles.xml  |  2 +-
 .../vlc/gui/preferences/PreferencesAudio.kt        | 26 ++++++---
 .../vlc/gui/preferences/PreferencesSubtitles.kt    | 16 ++++--
 .../videolan/vlc/gui/video/VideoPlayerActivity.kt  | 63 +++++++++++++++++-----
 7 files changed, 109 insertions(+), 36 deletions(-)

Diff:   https://code.videolan.org/videolan/vlc-android/commit/452172c978f17ed84dff52ffaf062f7d2c6ebb91


More information about the Android mailing list