1
0
Fork 0

log when cancelling progress notification

this can help in the future to diagnose stuck notification issues, so we at least know if the cancellation code ran or not.
This commit is contained in:
Torsten Grote 2024-07-04 10:18:03 -03:00
parent e07e043ab9
commit b97c552f03
No known key found for this signature in database
GPG key ID: 3E5F77D92CF891FF

View file

@ -104,6 +104,7 @@ internal class BackupNotificationManager(private val context: Context) {
* Call after [onApkBackup] or [onAppsNotBackedUp] were called.
*/
fun onApkBackupDone() {
Log.i(TAG, "Cancelled progress notification.")
nm.cancel(NOTIFICATION_ID_OBSERVER)
}
@ -196,6 +197,7 @@ internal class BackupNotificationManager(private val context: Context) {
priority = PRIORITY_LOW
}.build()
nm.cancel(NOTIFICATION_ID_OBSERVER)
Log.i(TAG, "Cancelled progress notification.")
nm.notify(NOTIFICATION_ID_SUCCESS, notification)
}