Merge "selectBackupTransportAsync should report failure when backup is not available" into oc-dev

am: 9dee975361

Change-Id: I174fa48341337fa38e1edf40460f01a655fff62a
This commit is contained in:
Tony Mak
2017-05-04 08:50:01 +00:00
committed by android-build-merger

View File

@@ -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
}
}
}
}