From 16d1b63850008f60a0991944e4f1aea7f105a5b3 Mon Sep 17 00:00:00 2001 From: Emily Kager Date: Thu, 5 Sep 2019 09:21:56 -0700 Subject: [PATCH] [fenix] For https://github.com/mozilla-mobile/fenix/issues/5075 - Fix boolean error for private mode notification persistence (https://github.com/mozilla-mobile/fenix/pull/5120) --- .../org/mozilla/fenix/session/NotificationSessionObserver.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/main/java/org/mozilla/fenix/session/NotificationSessionObserver.kt b/app/src/main/java/org/mozilla/fenix/session/NotificationSessionObserver.kt index 090ecf82da..0b170c21ad 100644 --- a/app/src/main/java/org/mozilla/fenix/session/NotificationSessionObserver.kt +++ b/app/src/main/java/org/mozilla/fenix/session/NotificationSessionObserver.kt @@ -20,7 +20,7 @@ class NotificationSessionObserver( ) : SessionManager.Observer { override fun onSessionRemoved(session: Session) { - val privateTabsEmpty = !context.components.core.sessionManager.sessionsOfType(private = true).none() + val privateTabsEmpty = context.components.core.sessionManager.sessionsOfType(private = true).none() if (privateTabsEmpty) { SessionNotificationService.stop(context)