[fenix] For https://github.com/mozilla-mobile/fenix/issues/5709 Do not animate switch for ETP panel

pull/600/head
mcarare 5 years ago committed by Emily Kager
parent c7dc1bad43
commit 15121f02bb

@ -165,6 +165,7 @@ class TrackingProtectionPanelView(
trackingProtectionSwitch.switchItemDescription.text =
view.context.getString(if (isTrackingProtectionOn) R.string.etp_panel_on else R.string.etp_panel_off)
trackingProtectionSwitch.switch_widget.isChecked = isTrackingProtectionOn
trackingProtectionSwitch.switch_widget.jumpDrawablesToCurrentState()
trackingProtectionSwitch.switch_widget.setOnCheckedChangeListener { _, isChecked ->
interactor.trackingProtectionToggled(isChecked)

Loading…
Cancel
Save