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

Commit 8e4ac714 authored by Android (Google) Code Review's avatar Android (Google) Code Review
Browse files

Merge change 8571

* changes:
  Don't leave restore data lying around after the operation
parents e2dba024 1531dc80
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -1281,6 +1281,8 @@ class BackupManagerService extends IBackupManager.Stub {
                // again in this case before propagating the exception
                Log.e(TAG, "Error restoring data for " + packageName, e);
                clearApplicationDataSynchronous(packageName);
            } finally {
                backupDataName.delete();
            }
        }
    }