Skip to content

Commit

Permalink
Correct condition
Browse files Browse the repository at this point in the history
  • Loading branch information
dshokouhi committed Oct 22, 2024
1 parent 6cf5801 commit edcbe61
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,7 @@ class SettingsFragment(
val isAutomotive =
Build.VERSION.SDK_INT >= Build.VERSION_CODES.M && requireContext().packageManager.hasSystemFeature(PackageManager.FEATURE_AUTOMOTIVE)

findPreference<PreferenceCategory>("widgets")?.isVisible = Build.MODEL != "Quest" || isAutomotive
findPreference<PreferenceCategory>("widgets")?.isVisible = Build.MODEL != "Quest" || !isAutomotive
findPreference<Preference>("manage_widgets")?.setOnPreferenceClickListener {
parentFragmentManager.commit {
replace(R.id.content, ManageWidgetsSettingsFragment::class.java, null)
Expand Down

0 comments on commit edcbe61

Please sign in to comment.