Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit f35953a7 authored by Tony Mak's avatar Tony Mak Committed by android-build-merger
Browse files

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

am: 9dee9753

Change-Id: I174fa48341337fa38e1edf40460f01a655fff62a
parents 0bf5c122 9dee9753
Loading
Loading
Loading
Loading
+8 −0
Original line number Diff line number Diff line
@@ -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
                }
            }
        }
    }