Closes #26858: Remove unused nimbus engine-settings tabs-prioritization-enabled feature.

pull/543/head
Arturo Mejia 2 years ago
parent 5358e9b878
commit fd96263345

@ -887,6 +887,9 @@ class Settings(private val appContext: Context) : PreferencesHolder {
default = { mr2022Sections[Mr2022Section.JUMP_BACK_IN_CFR] == true },
)
/**
* Returns a sitePermissions action for the provided [feature].
*/
fun getSitePermissionsPhoneFeatureAction(
feature: PhoneFeature,
default: Action = Action.ASK_TO_ALLOW,
@ -924,6 +927,9 @@ class Settings(private val appContext: Context) : PreferencesHolder {
default: AutoplayAction = AutoplayAction.BLOCKED,
) = preferences.getInt(feature.getPreferenceKey(appContext), default.toInt()).toAutoplayAction()
/**
* Sets a sitePermissions action for the provided [feature].
*/
fun setSitePermissionsPhoneFeatureAction(
feature: PhoneFeature,
value: Action,

Loading…
Cancel
Save