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

Commit b4431235 authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Android (Google) Code Review
Browse files

Merge "Add throwIfParentInstance check to setMandatoryBackupTransport."

parents cca08c8b 62900120
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -8733,6 +8733,7 @@ public class DevicePolicyManager {
     */
    public void setMandatoryBackupTransport(
            @NonNull ComponentName admin, @Nullable ComponentName backupTransportComponent) {
        throwIfParentInstance("setMandatoryBackupTransport");
        try {
            mService.setMandatoryBackupTransport(admin, backupTransportComponent);
        } catch (RemoteException re) {
@@ -8748,6 +8749,7 @@ public class DevicePolicyManager {
     *         mandatory or {@code null} if backups are not mandatory.
     */
    public ComponentName getMandatoryBackupTransport() {
        throwIfParentInstance("getMandatoryBackupTransport");
        try {
            return mService.getMandatoryBackupTransport();
        } catch (RemoteException re) {