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