From d2c1893cf90aed3bdfb33e0cea8763a68317c5e4 Mon Sep 17 00:00:00 2001 From: Arturo Mejia Date: Thu, 26 May 2022 16:10:27 -0400 Subject: [PATCH] For #25212: Add tabs prioritization --- app/src/main/java/org/mozilla/fenix/components/Core.kt | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/app/src/main/java/org/mozilla/fenix/components/Core.kt b/app/src/main/java/org/mozilla/fenix/components/Core.kt index 7ed670dbf2ee..6484f9857d2d 100644 --- a/app/src/main/java/org/mozilla/fenix/components/Core.kt +++ b/app/src/main/java/org/mozilla/fenix/components/Core.kt @@ -17,6 +17,7 @@ import mozilla.components.browser.engine.gecko.permission.GeckoSitePermissionsSt import mozilla.components.browser.icons.BrowserIcons import mozilla.components.browser.session.storage.SessionStorage import mozilla.components.browser.state.engine.EngineMiddleware +import mozilla.components.browser.state.engine.middleware.SessionPrioritizationMiddleware import mozilla.components.browser.state.search.SearchEngine import mozilla.components.browser.state.state.BrowserState import mozilla.components.browser.state.state.SearchState @@ -231,7 +232,8 @@ class Core( AdsTelemetryMiddleware(adsTelemetry), LastMediaAccessMiddleware(), HistoryMetadataMiddleware(historyMetadataService), - SearchTermTabGroupMiddleware() + SearchTermTabGroupMiddleware(), + SessionPrioritizationMiddleware() ) BrowserStore(