[Android] Fix summary update on passthrough preference for TV

Nicolas Pomepuy git at videolan.org
Mon Mar 22 12:47:03 UTC 2021


vlc-android | branch: master | Nicolas Pomepuy <nicolas at videolabs.io> | Fri Mar 19 09:13:25 2021 +0100| [ca07a6dde525987a047042d8a949b7b39d49b24d] | committer: Nicolas Pomepuy

Fix summary update on passthrough preference for TV

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

 .../main/java/org/videolan/television/ui/preferences/PreferencesAudio.kt | 1 +
 1 file changed, 1 insertion(+)

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 315440b58..9e69c9d1b 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
@@ -89,6 +89,7 @@ class PreferencesAudio : BasePreferenceFragment(), SharedPreferences.OnSharedPre
                 if (opensles) findPreference<CheckBoxPreference>("audio_digital_output")?.isChecked = false
                 findPreference<Preference>("audio_digital_output")?.isVisible = !opensles
             }
+            "audio_digital_output" -> updatePassThroughSummary()
         }
     }
 }
\ No newline at end of file



More information about the Android mailing list