[Android] Re-order keys for consistency
Robert Stone
git at videolan.org
Tue Apr 19 08:31:21 UTC 2022
vlc-android | branch: master | Robert Stone <rhstone at gmail.com> | Mon Apr 18 19:56:29 2022 -0700| [0b5cfba1b81f79f2bc8325f78c07d5d5a2651b7d] | committer: Robert Stone
Re-order keys for consistency
> https://code.videolan.org/videolan/vlc-android/commit/0b5cfba1b81f79f2bc8325f78c07d5d5a2651b7d
---
.../java/org/videolan/television/ui/preferences/PreferencesAudio.kt | 2 +-
.../src/org/videolan/vlc/gui/preferences/PreferencesAudio.kt | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/application/television/src/main/java/org/videolan/television/ui/preferences/PreferencesAudio.kt b/application/television/src/main/java/org/videolan/television/ui/preferences/PreferencesAudio.kt
index 6d2dc5132..e4f1ccb6b 100644
--- a/application/television/src/main/java/org/videolan/television/ui/preferences/PreferencesAudio.kt
+++ b/application/television/src/main/java/org/videolan/television/ui/preferences/PreferencesAudio.kt
@@ -87,7 +87,7 @@ class PreferencesAudio : BasePreferenceFragment(), SharedPreferences.OnSharedPre
val f = super.buildPreferenceDialogFragment(preference)
if (f is CustomEditTextPreferenceDialogFragment) {
when (preference.key) {
- "audio-replay-gain-preamp", "audio-replay-gain-default" -> {
+ "audio-replay-gain-default", "audio-replay-gain-preamp" -> {
f.setFilters(arrayOf(InputFilter.LengthFilter(6)))
f.setInputType(InputType.TYPE_CLASS_NUMBER or InputType.TYPE_NUMBER_FLAG_DECIMAL or InputType.TYPE_NUMBER_FLAG_SIGNED)
}
diff --git a/application/vlc-android/src/org/videolan/vlc/gui/preferences/PreferencesAudio.kt b/application/vlc-android/src/org/videolan/vlc/gui/preferences/PreferencesAudio.kt
index 779b84cd2..9b9a8fef8 100644
--- a/application/vlc-android/src/org/videolan/vlc/gui/preferences/PreferencesAudio.kt
+++ b/application/vlc-android/src/org/videolan/vlc/gui/preferences/PreferencesAudio.kt
@@ -75,7 +75,7 @@ class PreferencesAudio : BasePreferenceFragment(), SharedPreferences.OnSharedPre
updatePassThroughSummary()
val opensles = "1" == preferenceManager.sharedPreferences.getString("aout", "0")
if (opensles) findPreference<Preference>("audio_digital_output")?.isVisible = false
- for (key in arrayOf("audio-replay-gain-preamp", "audio-replay-gain-default")) {
+ for (key in arrayOf("audio-replay-gain-default", "audio-replay-gain-preamp")) {
findPreference<EditTextPreference>(key)?.setOnBindEditTextListener {
it.inputType = InputType.TYPE_CLASS_NUMBER or InputType.TYPE_NUMBER_FLAG_DECIMAL or InputType.TYPE_NUMBER_FLAG_SIGNED
it.filters = arrayOf<InputFilter>(InputFilter.LengthFilter(6))
More information about the Android
mailing list