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:
parent
e07e043ab9
commit
b97c552f03
1 changed files with 2 additions and 0 deletions
|
@ -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)
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue