From 494a78db4d637eaec14d46f2df742447fc4957f0 Mon Sep 17 00:00:00 2001 From: Mihai Tabara Date: Fri, 14 Jun 2019 18:35:10 -0700 Subject: [PATCH] Import PR 3500 from ekager --- app/src/main/java/org/mozilla/fenix/home/HomeFragment.kt | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/app/src/main/java/org/mozilla/fenix/home/HomeFragment.kt b/app/src/main/java/org/mozilla/fenix/home/HomeFragment.kt index 2628a8341dc7..91cc86a823ae 100644 --- a/app/src/main/java/org/mozilla/fenix/home/HomeFragment.kt +++ b/app/src/main/java/org/mozilla/fenix/home/HomeFragment.kt @@ -573,11 +573,10 @@ class HomeFragment : Fragment(), CoroutineScope, AccountObserver { getManagedEmitter().onNext(SessionControlChange.TabsChange(listOf())) val deleteOperation: (suspend () -> Unit) = { - sessionManager.filteredSessions(isPrivate) { it.id == pendingSessionDeletion?.sessionId }.forEach { + sessionManager.sessions.filter { it.private == isPrivate }.forEach { useCases.removeTab.invoke(it) } } - deleteAllSessionsJob = deleteOperation allowUndo(