|
|
@ -135,7 +135,7 @@ class Core(private val context: Context) {
|
|
|
|
* in private browsing mode, default to the current preference value.
|
|
|
|
* in private browsing mode, default to the current preference value.
|
|
|
|
* @return the constructed tracking protection policy based on preferences.
|
|
|
|
* @return the constructed tracking protection policy based on preferences.
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
private fun createTrackingProtectionPolicy(
|
|
|
|
fun createTrackingProtectionPolicy(
|
|
|
|
normalMode: Boolean = Settings.getInstance(context).shouldUseTrackingProtection,
|
|
|
|
normalMode: Boolean = Settings.getInstance(context).shouldUseTrackingProtection,
|
|
|
|
privateMode: Boolean = true
|
|
|
|
privateMode: Boolean = true
|
|
|
|
): TrackingProtectionPolicy {
|
|
|
|
): TrackingProtectionPolicy {
|
|
|
@ -153,11 +153,6 @@ class Core(private val context: Context) {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
fun updateTrackingProtection(newValue: Boolean) {
|
|
|
|
|
|
|
|
engine.settings.trackingProtectionPolicy =
|
|
|
|
|
|
|
|
createTrackingProtectionPolicy(normalMode = newValue)
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
/**
|
|
|
|
* Sets Preferred Color scheme based on Dark/Light Theme Settings or Current Configuration
|
|
|
|
* Sets Preferred Color scheme based on Dark/Light Theme Settings or Current Configuration
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|