No Issue - Only block a subset of trackers by default
parent
0666864418
commit
1ffbc51038
|
@ -145,11 +145,16 @@ class Core(private val context: Context) {
|
||||||
normalMode: Boolean = true,
|
normalMode: Boolean = true,
|
||||||
privateMode: Boolean = true
|
privateMode: Boolean = true
|
||||||
): TrackingProtectionPolicy {
|
): TrackingProtectionPolicy {
|
||||||
|
val trackingProtectionPolicy = TrackingProtectionPolicy.select(
|
||||||
|
TrackingProtectionPolicy.AD,
|
||||||
|
TrackingProtectionPolicy.ANALYTICS,
|
||||||
|
TrackingProtectionPolicy.SOCIAL
|
||||||
|
)
|
||||||
|
|
||||||
return when {
|
return when {
|
||||||
normalMode && privateMode -> TrackingProtectionPolicy.all()
|
normalMode && privateMode -> trackingProtectionPolicy
|
||||||
normalMode && !privateMode -> TrackingProtectionPolicy.all().forRegularSessionsOnly()
|
normalMode && !privateMode -> trackingProtectionPolicy.forRegularSessionsOnly()
|
||||||
!normalMode && privateMode -> TrackingProtectionPolicy.all().forPrivateSessionsOnly()
|
!normalMode && privateMode -> trackingProtectionPolicy.forPrivateSessionsOnly()
|
||||||
else -> TrackingProtectionPolicy.none()
|
else -> TrackingProtectionPolicy.none()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue