From 3dae7c48d1f8e250b00409965a5c1a2d92a7feda Mon Sep 17 00:00:00 2001 From: Colin Lee Date: Sun, 17 Feb 2019 12:32:09 -0600 Subject: [PATCH] [fenix] Fixes https://github.com/mozilla-mobile/fenix/issues/545: overflow menu multitasking deletes private and non-private --- .../fenix/home/sessions/CurrentSessionBottomSheetFragment.kt | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/app/src/main/java/org/mozilla/fenix/home/sessions/CurrentSessionBottomSheetFragment.kt b/app/src/main/java/org/mozilla/fenix/home/sessions/CurrentSessionBottomSheetFragment.kt index bae22b97a1..868a5de617 100644 --- a/app/src/main/java/org/mozilla/fenix/home/sessions/CurrentSessionBottomSheetFragment.kt +++ b/app/src/main/java/org/mozilla/fenix/home/sessions/CurrentSessionBottomSheetFragment.kt @@ -36,7 +36,9 @@ class CurrentSessionBottomSheetFragment : BottomSheetDialogFragment(), LayoutCon } view.delete_session_button.setOnClickListener { - requireComponents.core.sessionManager.removeAll() + sessions.forEach { + requireComponents.core.sessionManager.remove(it) + } dismiss() } return view