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

Commit 174fa280 authored by Raph Levien's avatar Raph Levien
Browse files

Fix XML parsing crash in SettingsProvider

A previous change added more whitespace to settings_global.xml to
improve human readability, but the parser is overly picky in ignoring
whitespace. This patch makes it accept all whitespace strings.

Bug: 19696812
Change-Id: I3ebb8f6df2e25f4e6b6841da743be3f3a91e2442
parent 4771577a
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -470,7 +470,7 @@ final class SettingsState {
    private void skipEmptyTextTags(XmlPullParser parser)
            throws IOException, XmlPullParserException {
        while (accept(parser, XmlPullParser.TEXT, null)
                && "\n".equals(parser.getText())) {
                && parser.isWhitespace()) {
            parser.next();
        }
    }