OSDN Git Service

Fix that backupFinished() callback is not called sometimes.
authorSergey Poromov <poromov@google.com>
Tue, 9 Feb 2016 15:24:46 +0000 (16:24 +0100)
committerSergey Poromov <poromov@google.com>
Tue, 9 Feb 2016 17:31:08 +0000 (18:31 +0100)
commit2ea71ad6254c4094d0d34a39d9988c9d75b038ed
treec57e4d8a2cb39de43006c158739a1b7d408fe6cb
parent49c8765e1184c7907848b3dc83347f8299a2e8d1
Fix that backupFinished() callback is not called sometimes.

Before this in case of TRANSPORT_ERROR backup pass was aborted before backupFinished() call.
Now this happens in 'finally' block so that there is no way to avoid it.
Also, now backup pass doesn't break in case of QUOTA_EXCEEDED result for single package.
And some refactoring around 'currentPackage' variable.

Bug: 27094847
Change-Id: I18df3f500b427381f32bd11ed1aa87ab9577bc91
services/backup/java/com/android/server/backup/BackupManagerService.java