From 78ac6fc9120685e6618f9eadcfb300daf8918bb1 Mon Sep 17 00:00:00 2001 From: ekager Date: Fri, 20 Sep 2019 10:23:24 -0700 Subject: [PATCH] For #5448 - Reload custom tab session when TP is toggled --- .../TrackingProtectionPanelDialogFragment.kt | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/app/src/main/java/org/mozilla/fenix/trackingprotection/TrackingProtectionPanelDialogFragment.kt b/app/src/main/java/org/mozilla/fenix/trackingprotection/TrackingProtectionPanelDialogFragment.kt index 6dfb545b2f..bb08cf5810 100644 --- a/app/src/main/java/org/mozilla/fenix/trackingprotection/TrackingProtectionPanelDialogFragment.kt +++ b/app/src/main/java/org/mozilla/fenix/trackingprotection/TrackingProtectionPanelDialogFragment.kt @@ -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)) }