Skip to content

Commit daf454c

Browse files
committed
Made all summary blocks non-selectable
1 parent 7efbdc7 commit daf454c

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

app/src/main/java/corewala/buran/ui/settings/SettingsFragment.kt

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -86,9 +86,11 @@ class SettingsFragment: PreferenceFragmentCompat(), Preference.OnPreferenceChang
8686
webCategory.title = getString(R.string.web_content)
8787
screen.addPreference(webCategory)
8888

89-
val customTabInfo = Preference(context)
90-
customTabInfo.summary = getString(R.string.web_content_label)
91-
webCategory.addPreference(customTabInfo)
89+
val aboutCustomTabPref = Preference(context)
90+
aboutCustomTabPref.summary = getString(R.string.web_content_label)
91+
aboutCustomTabPref.isPersistent = false
92+
aboutCustomTabPref.isSelectable = false
93+
webCategory.addPreference(aboutCustomTabPref)
9294

9395
val useCustomTabsPreference = SwitchPreferenceCompat(context)
9496
useCustomTabsPreference.setDefaultValue(true)
@@ -174,6 +176,8 @@ class SettingsFragment: PreferenceFragmentCompat(), Preference.OnPreferenceChang
174176
//Accessibility - code blocks
175177
val aboutCodeBlocksPref = Preference(context)
176178
aboutCodeBlocksPref.summary = getString(R.string.collapse_code_blocks_about)
179+
aboutCodeBlocksPref.isPersistent = false
180+
aboutCodeBlocksPref.isSelectable = false
177181
accessibilityCategory.addPreference(aboutCodeBlocksPref)
178182

179183
val collapseCodeBlocksPreference = SwitchPreferenceCompat(context)

0 commit comments

Comments
 (0)