Only show progress notification for successful backup
This commit is contained in:
parent
1543dccd96
commit
e07e043ab9
1 changed files with 4 additions and 2 deletions
|
|
@ -108,8 +108,10 @@ internal class NotificationBackupObserver(
|
||||||
null // To not disable apps by mistake, we reset it when getting a new non-error result.
|
null // To not disable apps by mistake, we reset it when getting a new non-error result.
|
||||||
}
|
}
|
||||||
|
|
||||||
// often [onResult] gets called right away without any [onUpdate] call
|
// Often [onResult] gets called right away without any [onUpdate] call,
|
||||||
showProgressNotification(target)
|
// so we show progress notification here as well.
|
||||||
|
// However, only do it on success, to prevent a race causing stuck notifications
|
||||||
|
if (status == 0) showProgressNotification(target)
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue