From db31d92181e75aa6ed953d03d82c058094a19009 Mon Sep 17 00:00:00 2001 From: Emux Date: Fri, 30 Jun 2023 13:43:23 +0300 Subject: [PATCH] Render themes: log unknown attributes (#1050) --- vtm/src/org/oscim/theme/XmlThemeBuilder.java | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/vtm/src/org/oscim/theme/XmlThemeBuilder.java b/vtm/src/org/oscim/theme/XmlThemeBuilder.java index 20e16019a..778e34a9f 100644 --- a/vtm/src/org/oscim/theme/XmlThemeBuilder.java +++ b/vtm/src/org/oscim/theme/XmlThemeBuilder.java @@ -144,7 +144,7 @@ public static void setXmlPullParserFactory(XmlPullParserFactory xmlPullParserFac * @param attributeIndex the XML attribute index position. */ private static void logUnknownAttribute(String element, String name, String value, int attributeIndex) { - log.debug("unknown attribute in element {} {} : {} = {}", element, attributeIndex, name, value); + log.warn("unknown attribute in element {} {} : {} = {}", element, attributeIndex, name, value); } private final ArrayList mRulesList = new ArrayList<>(); @@ -947,7 +947,9 @@ private void createRenderTheme(String elementName) { String name = mPullParser.getAttributeName(i); String value = mPullParser.getAttributeValue(i); - if ("schemaLocation".equals(name)) + if ("xmlns:xsi".equals(name)) + continue; + if ("xsi:schemaLocation".equals(name)) continue; if ("xmlns".equals(name))