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

Commit 815be147 authored by Svetoslav's avatar Svetoslav Committed by Android (Google) Code Review
Browse files

Merge "Use AtomicFile APIs correctly when reading." into mnc-dev

parents d377b067 3dcdd37b
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -400,7 +400,7 @@ final class SettingsState {
            return;
        }
        try {
            in = new FileInputStream(mStatePersistFile);
            in = new AtomicFile(mStatePersistFile).openRead();
        } catch (FileNotFoundException fnfe) {
            Slog.i(LOG_TAG, "No settings state");
            return;
+1 −1
Original line number Diff line number Diff line
@@ -4386,7 +4386,7 @@ final class Settings {

            FileInputStream in;
            try {
                in = new FileInputStream(permissionsFile);
                in = new AtomicFile(permissionsFile).openRead();
            } catch (FileNotFoundException fnfe) {
                Slog.i(PackageManagerService.TAG, "No permissions state");
                return;