Allow user to load installed extensions regardless of content warning (#3952)
This commit is contained in:
@@ -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)),
|
||||
),
|
||||
),
|
||||
|
||||
Reference in New Issue
Block a user