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