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 Original line Diff line number Diff line
@@ -8733,6 +8733,7 @@ public class DevicePolicyManager {
     */
     */
    public void setMandatoryBackupTransport(
    public void setMandatoryBackupTransport(
            @NonNull ComponentName admin, @Nullable ComponentName backupTransportComponent) {
            @NonNull ComponentName admin, @Nullable ComponentName backupTransportComponent) {
        throwIfParentInstance("setMandatoryBackupTransport");
        try {
        try {
            mService.setMandatoryBackupTransport(admin, backupTransportComponent);
            mService.setMandatoryBackupTransport(admin, backupTransportComponent);
        } catch (RemoteException re) {
        } catch (RemoteException re) {
@@ -8748,6 +8749,7 @@ public class DevicePolicyManager {
     *         mandatory or {@code null} if backups are not mandatory.
     *         mandatory or {@code null} if backups are not mandatory.
     */
     */
    public ComponentName getMandatoryBackupTransport() {
    public ComponentName getMandatoryBackupTransport() {
        throwIfParentInstance("getMandatoryBackupTransport");
        try {
        try {
            return mService.getMandatoryBackupTransport();
            return mService.getMandatoryBackupTransport();
        } catch (RemoteException re) {
        } catch (RemoteException re) {