diff options
author | Svetoslav <svetoslavganov@google.com> | 2015-03-10 16:53:35 -0700 |
---|---|---|
committer | Svetoslav <svetoslavganov@google.com> | 2015-03-10 16:53:35 -0700 |
commit | c3f56c3cb51d486e581c26876e2ae1368f91e2ca (patch) | |
tree | 521d46020ec12ec9f029964dd8aeb7a49d4378b7 /packages/SettingsProvider | |
parent | dbbeeb3f44793798f129f25eb3e62f4cfe709d26 (diff) | |
download | frameworks_base-c3f56c3cb51d486e581c26876e2ae1368f91e2ca.zip frameworks_base-c3f56c3cb51d486e581c26876e2ae1368f91e2ca.tar.gz frameworks_base-c3f56c3cb51d486e581c26876e2ae1368f91e2ca.tar.bz2 |
Make settings XML files readable
Change-Id: I320f5419e045d257dc5ccbf81a9434f9b9d38564
Diffstat (limited to 'packages/SettingsProvider')
-rw-r--r-- | packages/SettingsProvider/src/com/android/providers/settings/SettingsState.java | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/packages/SettingsProvider/src/com/android/providers/settings/SettingsState.java b/packages/SettingsProvider/src/com/android/providers/settings/SettingsState.java index 0d03ed9..3a8216d 100644 --- a/packages/SettingsProvider/src/com/android/providers/settings/SettingsState.java +++ b/packages/SettingsProvider/src/com/android/providers/settings/SettingsState.java @@ -354,6 +354,7 @@ final class SettingsState { XmlSerializer serializer = Xml.newSerializer(); serializer.setOutput(out, "utf-8"); + serializer.setFeature("http://xmlpull.org/v1/doc/features.html#indent-output", true); serializer.startDocument(null, true); serializer.startTag(null, TAG_SETTINGS); serializer.attribute(null, ATTR_VERSION, String.valueOf(version)); @@ -383,7 +384,7 @@ final class SettingsState { } } catch (IOException e) { - Slog.w(LOG_TAG, "Failed to write settings, restoring backup", e); + Slog.wtf(LOG_TAG, "Failed to write settings, restoring backup", e); destination.failWrite(out); } finally { IoUtils.closeQuietly(out); |