[Android] Remove the Android Auto settings from TV

Nicolas Pomepuy git at videolan.org
Wed Nov 27 10:22:39 UTC 2024


vlc-android | branch: master | Nicolas Pomepuy <nicolas at videolabs.io> | Wed Nov 27 08:03:43 2024 +0100| [361b8cf75350b2fb1bd97b4fd7a1cb6980a78253] | committer: Nicolas Pomepuy

Remove the Android Auto settings from TV

Fixes a crash

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

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

diff --git a/application/television/src/main/java/org/videolan/television/ui/preferences/PreferencesFragment.kt b/application/television/src/main/java/org/videolan/television/ui/preferences/PreferencesFragment.kt
index 5af34b529d..d717073b97 100644
--- a/application/television/src/main/java/org/videolan/television/ui/preferences/PreferencesFragment.kt
+++ b/application/television/src/main/java/org/videolan/television/ui/preferences/PreferencesFragment.kt
@@ -56,6 +56,7 @@ class PreferencesFragment : BasePreferenceFragment(), SharedPreferences.OnShared
         super.onCreate(savedInstanceState)
         findPreference<Preference>(SCREEN_ORIENTATION)?.isVisible = false
         findPreference<Preference>("casting_category")?.isVisible = false
+        findPreference<Preference>("android_auto_category")?.isVisible = false
         findPreference<Preference>(KEY_VIDEO_APP_SWITCH)?.isVisible = AndroidDevices.hasPiP
         findPreference<Preference>("remote_access_category")?.isVisible = Build.VERSION.SDK_INT >= Build.VERSION_CODES.LOLLIPOP_MR1
         findPreference<Preference>("permissions_title")?.isVisible = Build.VERSION.SDK_INT >= Build.VERSION_CODES.LOLLIPOP_MR1



More information about the Android mailing list