File tree Expand file tree Collapse file tree
app/src/main/kotlin/com/darkrockstudios/app/securecamera/auth Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -81,6 +81,7 @@ class SessionService : Service() {
8181 override fun onTaskRemoved (rootIntent : Intent ? ) {
8282 Timber .d(" App task removed, clearing notification and stopping service" )
8383 invalidateSessionUseCase.invalidateSession()
84+ dismissNotification()
8485 stopSelf()
8586 super .onTaskRemoved(rootIntent)
8687 }
@@ -92,6 +93,7 @@ class SessionService : Service() {
9293 if (! authRepository.checkSessionValidity()) {
9394 Timber .d(" Session is no longer valid, invalidating session" )
9495 invalidateSessionUseCase.invalidateSession()
96+ dismissNotification()
9597 stopSelf()
9698 break
9799 }
@@ -100,6 +102,7 @@ class SessionService : Service() {
100102 } catch (e: Exception ) {
101103 Timber .e(e, " Error in SessionService" )
102104 } finally {
105+ dismissNotification()
103106 stopSelf()
104107 }
105108 }
You can’t perform that action at this time.
0 commit comments