2
0
mirror of https://github.com/fork-maintainers/iceraven-browser synced 2024-11-05 21:20:45 +00:00

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

This commit is contained in:
ekager 2019-09-20 10:23:24 -07:00 committed by Emily Kager
parent a63eaa9d67
commit 78ac6fc912

View File

@ -158,7 +158,9 @@ class TrackingProtectionPanelDialogFragment : AppCompatDialogFragment(), BackHan
lifecycleScope.launch {
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))
}