parent
388c7017d8
commit
beb323924b
|
@ -149,7 +149,7 @@ class TrackingProtectionFragment : PreferenceFragmentCompat() {
|
||||||
R.id.trackingProtectionFragment,
|
R.id.trackingProtectionFragment,
|
||||||
TrackingProtectionFragmentDirections
|
TrackingProtectionFragmentDirections
|
||||||
.actionTrackingProtectionFragmentToTrackingProtectionBlockingFragment(
|
.actionTrackingProtectionFragmentToTrackingProtectionBlockingFragment(
|
||||||
getString(R.string.preference_enhanced_tracking_protection_standard)
|
getString(R.string.preference_enhanced_tracking_protection_standard_option)
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
|
@ -30,11 +30,14 @@ class TrackingProtectionBlockingFragment :
|
||||||
super.onViewCreated(view, savedInstanceState)
|
super.onViewCreated(view, savedInstanceState)
|
||||||
|
|
||||||
when (args.protectionMode) {
|
when (args.protectionMode) {
|
||||||
getString(R.string.preference_enhanced_tracking_protection_strict) -> {
|
|
||||||
category_fingerprinters.isVisible = true
|
getString(R.string.preference_enhanced_tracking_protection_standard_option) -> {
|
||||||
category_tracking_content.isVisible = true
|
category_fingerprinters.isVisible = false
|
||||||
|
category_tracking_content.isVisible = false
|
||||||
}
|
}
|
||||||
|
|
||||||
|
getString(R.string.preference_enhanced_tracking_protection_strict) -> return
|
||||||
|
|
||||||
getString(R.string.preference_enhanced_tracking_protection_custom) -> {
|
getString(R.string.preference_enhanced_tracking_protection_custom) -> {
|
||||||
category_fingerprinters.isVisible =
|
category_fingerprinters.isVisible =
|
||||||
requireContext().settings().blockFingerprintersInCustomTrackingProtection
|
requireContext().settings().blockFingerprintersInCustomTrackingProtection
|
||||||
|
@ -42,10 +45,10 @@ class TrackingProtectionBlockingFragment :
|
||||||
requireContext().settings().blockCryptominersInCustomTrackingProtection
|
requireContext().settings().blockCryptominersInCustomTrackingProtection
|
||||||
category_cookies.isVisible =
|
category_cookies.isVisible =
|
||||||
requireContext().settings().blockCookiesInCustomTrackingProtection
|
requireContext().settings().blockCookiesInCustomTrackingProtection
|
||||||
|
category_tracking_content.isVisible =
|
||||||
|
requireContext().settings().blockTrackingContentInCustomTrackingProtection
|
||||||
}
|
}
|
||||||
|
|
||||||
getString(R.string.preference_enhanced_tracking_protection_standard) -> return
|
|
||||||
|
|
||||||
else -> return
|
else -> return
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue