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

Commit 1ef8f533 authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Android (Google) Code Review
Browse files

Merge "Avoid reading XML file when it doesn't exist." into sc-dev

parents 88377bb5 a7f461fc
Loading
Loading
Loading
Loading
+5 −0
Original line number Original line Diff line number Diff line
@@ -137,6 +137,11 @@ public class GameManagerSettings {
    boolean readPersistentDataLocked() {
    boolean readPersistentDataLocked() {
        mGameModes.clear();
        mGameModes.clear();


        if (!mSettingsFile.exists()) {
            Slog.v(GameManagerService.TAG, "Settings file doesn't exists, skip reading");
            return false;
        }

        try {
        try {
            final FileInputStream str = mSettingsFile.openRead();
            final FileInputStream str = mSettingsFile.openRead();