[fenix] For https://github.com/mozilla-mobile/fenix/issues/8299: Select current ETP policy set on card creation

pull/600/head
mcarare 5 years ago committed by Emily Kager
parent 3003f9c72a
commit 7045a27193

@ -50,6 +50,11 @@ class OnboardingTrackingProtectionViewHolder(view: View) : RecyclerView.ViewHold
standardTrackingProtection.addToRadioGroup(strictTrackingProtection)
strictTrackingProtection.addToRadioGroup(standardTrackingProtection)
strictTrackingProtection.isChecked =
itemView.context.settings().useStrictTrackingProtection
standardTrackingProtection.isChecked =
!itemView.context.settings().useStrictTrackingProtection
standardTrackingProtection.onClickListener {
updateTrackingProtectionPolicy()
}

Loading…
Cancel
Save