mirror of
https://github.com/Corewala/Buran
synced 2025-03-12 15:18:37 +00:00
Made all summary blocks non-selectable
This commit is contained in:
parent
7efbdc7e71
commit
daf454c958
1 changed files with 7 additions and 3 deletions
|
@ -86,9 +86,11 @@ class SettingsFragment: PreferenceFragmentCompat(), Preference.OnPreferenceChang
|
||||||
webCategory.title = getString(R.string.web_content)
|
webCategory.title = getString(R.string.web_content)
|
||||||
screen.addPreference(webCategory)
|
screen.addPreference(webCategory)
|
||||||
|
|
||||||
val customTabInfo = Preference(context)
|
val aboutCustomTabPref = Preference(context)
|
||||||
customTabInfo.summary = getString(R.string.web_content_label)
|
aboutCustomTabPref.summary = getString(R.string.web_content_label)
|
||||||
webCategory.addPreference(customTabInfo)
|
aboutCustomTabPref.isPersistent = false
|
||||||
|
aboutCustomTabPref.isSelectable = false
|
||||||
|
webCategory.addPreference(aboutCustomTabPref)
|
||||||
|
|
||||||
val useCustomTabsPreference = SwitchPreferenceCompat(context)
|
val useCustomTabsPreference = SwitchPreferenceCompat(context)
|
||||||
useCustomTabsPreference.setDefaultValue(true)
|
useCustomTabsPreference.setDefaultValue(true)
|
||||||
|
@ -174,6 +176,8 @@ class SettingsFragment: PreferenceFragmentCompat(), Preference.OnPreferenceChang
|
||||||
//Accessibility - code blocks
|
//Accessibility - code blocks
|
||||||
val aboutCodeBlocksPref = Preference(context)
|
val aboutCodeBlocksPref = Preference(context)
|
||||||
aboutCodeBlocksPref.summary = getString(R.string.collapse_code_blocks_about)
|
aboutCodeBlocksPref.summary = getString(R.string.collapse_code_blocks_about)
|
||||||
|
aboutCodeBlocksPref.isPersistent = false
|
||||||
|
aboutCodeBlocksPref.isSelectable = false
|
||||||
accessibilityCategory.addPreference(aboutCodeBlocksPref)
|
accessibilityCategory.addPreference(aboutCodeBlocksPref)
|
||||||
|
|
||||||
val collapseCodeBlocksPreference = SwitchPreferenceCompat(context)
|
val collapseCodeBlocksPreference = SwitchPreferenceCompat(context)
|
||||||
|
|
Loading…
Add table
Reference in a new issue