fix notification logging
This commit is contained in:
parent
fe3c049999
commit
5e36b49e5a
1 changed files with 2 additions and 2 deletions
|
@ -77,8 +77,8 @@ class NotificationStore @Inject constructor(
|
|||
for (i in store.indices) {
|
||||
if (store[i].id == id) {
|
||||
if (store[i].soundId != null) alarmSoundServiceHelper.stopService(context)
|
||||
store.removeAt(i)
|
||||
aapsLogger.debug(LTag.NOTIFICATION, "Notification removed: " + store[i].text)
|
||||
store.removeAt(i)
|
||||
return true
|
||||
}
|
||||
}
|
||||
|
@ -92,8 +92,8 @@ class NotificationStore @Inject constructor(
|
|||
val n = store[i]
|
||||
if (n.validTo != 0L && n.validTo < System.currentTimeMillis()) {
|
||||
if (store[i].soundId != null) alarmSoundServiceHelper.stopService(context)
|
||||
store.removeAt(i)
|
||||
aapsLogger.debug(LTag.NOTIFICATION, "Notification expired: " + store[i].text)
|
||||
store.removeAt(i)
|
||||
i--
|
||||
}
|
||||
i++
|
||||
|
|
Loading…
Reference in a new issue