Mihai Adrian 5 years ago committed by GitHub
parent c0598a5174
commit c1b6a54662

@ -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…
Cancel
Save