1
0
Fork 0

For #5709 Do not animate switch for ETP panel

master
mcarare 2019-11-07 15:20:19 +02:00 committed by Emily Kager
parent e1f3611fdd
commit 1ff5a1934e
1 changed files with 1 additions and 0 deletions

View File

@ -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)