Merge "selectBackupTransportAsync should report failure when backup is not available" into oc-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
9dee975361
@@ -304,6 +304,14 @@ public class Trampoline extends IBackupManager.Stub {
|
||||
BackupManagerService svc = mService;
|
||||
if (svc != null) {
|
||||
svc.selectBackupTransportAsync(transport, listener);
|
||||
} else {
|
||||
if (listener != null) {
|
||||
try {
|
||||
listener.onFailure(BackupManager.ERROR_BACKUP_NOT_ALLOWED);
|
||||
} catch (RemoteException ex) {
|
||||
// Ignore
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user