parent
3a35233ac0
commit
bb2a685ad9
|
@ -20,7 +20,7 @@ class NotificationSessionObserver(
|
||||||
) : SessionManager.Observer {
|
) : SessionManager.Observer {
|
||||||
|
|
||||||
override fun onSessionRemoved(session: Session) {
|
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) {
|
if (privateTabsEmpty) {
|
||||||
SessionNotificationService.stop(context)
|
SessionNotificationService.stop(context)
|
||||||
|
|
Loading…
Reference in New Issue