Made all summary blocks non-selectable

This commit is contained in:
Corewala 2021-12-14 18:22:14 -05:00
parent 7efbdc7e71
commit daf454c958
1 changed files with 7 additions and 3 deletions

View File

@ -86,9 +86,11 @@ class SettingsFragment: PreferenceFragmentCompat(), Preference.OnPreferenceChang
webCategory.title = getString(R.string.web_content)
screen.addPreference(webCategory)
val customTabInfo = Preference(context)
customTabInfo.summary = getString(R.string.web_content_label)
webCategory.addPreference(customTabInfo)
val aboutCustomTabPref = Preference(context)
aboutCustomTabPref.summary = getString(R.string.web_content_label)
aboutCustomTabPref.isPersistent = false
aboutCustomTabPref.isSelectable = false
webCategory.addPreference(aboutCustomTabPref)
val useCustomTabsPreference = SwitchPreferenceCompat(context)
useCustomTabsPreference.setDefaultValue(true)
@ -174,6 +176,8 @@ class SettingsFragment: PreferenceFragmentCompat(), Preference.OnPreferenceChang
//Accessibility - code blocks
val aboutCodeBlocksPref = Preference(context)
aboutCodeBlocksPref.summary = getString(R.string.collapse_code_blocks_about)
aboutCodeBlocksPref.isPersistent = false
aboutCodeBlocksPref.isSelectable = false
accessibilityCategory.addPreference(aboutCodeBlocksPref)
val collapseCodeBlocksPreference = SwitchPreferenceCompat(context)