Remove “pref_ignoreFeedWhitelist”

This commit is contained in:
Patryk
2022-02-27 12:36:34 +01:00
parent aa5af1943d
commit c28fa0291a
2 changed files with 1 additions and 3 deletions
+1 -2
View File
@@ -121,7 +121,6 @@ class FeedBridge(private val context: Context) {
private inner class CustomBridgeInfo(packageName: String) : BridgeInfo(packageName, 0) {
override val signatureHash = whitelist[packageName]?.toInt() ?: -1
private val disableWhitelist = prefs.ignoreFeedWhitelist.get()
override fun isSigned(): Boolean {
if (signatureHash == -1 && Utilities.ATLEAST_P) {
val info = context.packageManager
@@ -133,7 +132,7 @@ class FeedBridge(private val context: Context) {
Log.d(TAG, "Feed provider $packageName(0x$hash) isn't whitelisted")
}
}
return disableWhitelist || signatureHash != -1 && super.isSigned()
return signatureHash != -1 && super.isSigned()
}
}
@@ -65,7 +65,6 @@ class PreferenceManager private constructor(private val context: Context) : Base
val drawerOpacity = FloatPref("pref_drawerOpacity", 1F, reloadGrid)
val coloredBackgroundLightness = FloatPref("pref_coloredBackgroundLightness", 0.9F, reloadIcons)
val feedProvider = StringPref("pref_feedProvider", "")
val ignoreFeedWhitelist = BoolPref("pref_ignoreFeedWhitelist", false)
val launcherTheme = StringPref("pref_launcherTheme", "system")
val overrideWindowCornerRadius = BoolPref("pref_overrideWindowCornerRadius", false, recreate)
val windowCornerRadius = IntPref("pref_windowCornerRadius", 80, recreate)