Allow user to load installed extensions regardless of content warning (#3952)

This commit is contained in:
AntsyLich
2026-09-14 21:22:32 +06:00
committed by GitHub
parent a5cd541bdf
commit 0e0bc6972a
4 changed files with 27 additions and 2 deletions
@@ -81,6 +81,22 @@ object SettingsBrowseScreen : SearchableSettings {
}
},
),
Preference.PreferenceItem.SwitchPreference(
preference = sourcePreferences.applyContentWarningsToInstalled,
title = stringResource(MR.strings.pref_apply_content_warnings_to_installed),
subtitle = stringResource(MR.strings.pref_apply_content_warnings_to_installed_summary),
onValueChanged = { newValue ->
if (newValue) {
true
} else {
(context as FragmentActivity).authenticate(
title = context.stringResource(
MR.strings.pref_apply_content_warnings_to_installed,
),
)
}
},
),
Preference.PreferenceItem.InfoPreference(stringResource(MR.strings.content_warnings_info)),
),
),