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

Commit cb20740e authored by Christopher Tate's avatar Christopher Tate
Browse files

Fix build. Silly gits.

Change-Id: I8f21b7239621da500d9a73eb17d350e06dda9b20
parent fd2c77ca
Loading
Loading
Loading
Loading
+0 −20
Original line number Diff line number Diff line
@@ -1308,26 +1308,6 @@ public class BackupManagerService extends IBackupManager.Stub {
            }
        }

        // Snap up to current on the pw file version
        mPasswordVersion = BACKUP_PW_FILE_VERSION;
        FileOutputStream pwFout = null;
        DataOutputStream pwOut = null;
        try {
            pwFout = new FileOutputStream(mPasswordVersionFile);
            pwOut = new DataOutputStream(pwFout);
            pwOut.writeInt(mPasswordVersion);
        } catch (IOException e) {
            Slog.e(TAG, "Unable to write backup pw version; password not changed");
            return false;
        } finally {
            try {
                if (pwOut != null) pwOut.close();
                if (pwFout != null) pwFout.close();
            } catch (IOException e) {
                Slog.w(TAG, "Unable to close pw version record");
            }
        }

        // Clearing the password is okay
        if (newPw == null || newPw.isEmpty()) {
            if (mPasswordHashFile.exists()) {