Skip to content

Commit

Permalink
Render themes: log unknown attributes (#1050)
Browse files Browse the repository at this point in the history
  • Loading branch information
devemux86 authored Jun 30, 2023
1 parent 574e63c commit db31d92
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions vtm/src/org/oscim/theme/XmlThemeBuilder.java
Original file line number Diff line number Diff line change
Expand Up @@ -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<RuleBuilder> mRulesList = new ArrayList<>();
Expand Down Expand Up @@ -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))
Expand Down

0 comments on commit db31d92

Please sign in to comment.