|
|
|
@ -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)) |
|
|
|
|