Loading packages/SettingsProvider/src/com/android/providers/settings/SettingsState.java +8 −2 Original line number Diff line number Diff line Loading @@ -1110,8 +1110,11 @@ final class SettingsState { } catch (FileNotFoundException fnfe) { final String message = "No fallback file found for: " + mStatePersistFile; Slog.wtf(LOG_TAG, message); if (!isConfigSettingsKey(mKey)) { // Allow partially deserialized config settings because they can be updated later throw new IllegalStateException(message); } } if (parseStateFromXmlStreamLocked(in)) { // Parsed state from fallback file. Restore original file with fallback file try { Loading @@ -1122,9 +1125,12 @@ final class SettingsState { } else { final String message = "Failed parsing settings file: " + mStatePersistFile; Slog.wtf(LOG_TAG, message); if (!isConfigSettingsKey(mKey)) { // Allow partially deserialized config settings because they can be updated later throw new IllegalStateException(message); } } } @GuardedBy("mLock") private boolean parseStateFromXmlStreamLocked(FileInputStream in) { Loading Loading
packages/SettingsProvider/src/com/android/providers/settings/SettingsState.java +8 −2 Original line number Diff line number Diff line Loading @@ -1110,8 +1110,11 @@ final class SettingsState { } catch (FileNotFoundException fnfe) { final String message = "No fallback file found for: " + mStatePersistFile; Slog.wtf(LOG_TAG, message); if (!isConfigSettingsKey(mKey)) { // Allow partially deserialized config settings because they can be updated later throw new IllegalStateException(message); } } if (parseStateFromXmlStreamLocked(in)) { // Parsed state from fallback file. Restore original file with fallback file try { Loading @@ -1122,9 +1125,12 @@ final class SettingsState { } else { final String message = "Failed parsing settings file: " + mStatePersistFile; Slog.wtf(LOG_TAG, message); if (!isConfigSettingsKey(mKey)) { // Allow partially deserialized config settings because they can be updated later throw new IllegalStateException(message); } } } @GuardedBy("mLock") private boolean parseStateFromXmlStreamLocked(FileInputStream in) { Loading