For #5448 - Reload custom tab session when TP is toggled

nightly-build-test
ekager 5 years ago committed by Emily Kager
parent a63eaa9d67
commit 78ac6fc912

@ -158,7 +158,9 @@ class TrackingProtectionPanelDialogFragment : AppCompatDialogFragment(), BackHan
lifecycleScope.launch { lifecycleScope.launch {
ExceptionDomains(context).toggle(host) ExceptionDomains(context).toggle(host)
} }
context.components.useCases.sessionUseCases.reload.invoke() with(context.components) {
useCases.sessionUseCases.reload.invoke(core.sessionManager.findSessionById(sessionId))
}
} }
trackingProtectionStore.dispatch(TrackingProtectionAction.TrackerBlockingChanged(isEnabled)) trackingProtectionStore.dispatch(TrackingProtectionAction.TrackerBlockingChanged(isEnabled))
} }

Loading…
Cancel
Save