For #5709 Do not animate switch for ETP panel
parent
e1f3611fdd
commit
1ff5a1934e
|
@ -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…
Reference in New Issue