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

Commit b1228020 authored by Svetoslav's avatar Svetoslav Committed by Android Git Automerger
Browse files

am d5464b9d: am 80c2cc14: am 815be147: Merge "Use AtomicFile APIs correctly...

am d5464b9d: am 80c2cc14: am 815be147: Merge "Use AtomicFile APIs correctly when reading." into mnc-dev

* commit 'd5464b9d':
  Use AtomicFile APIs correctly when reading.
parents df748ed7 d5464b9d
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;