fix: patch out bools on ResBooleans, as they must be empty

- refs: #1918
This commit is contained in:
Connor Tumbleson 2019-01-03 16:57:23 -05:00
parent 0dfa6c4656
commit f997e0aff1

View File

@ -83,6 +83,13 @@ public abstract class ResScalarValue extends ResIntBasedValue implements
}
}
// Android does not allow values (false) for ids.xml anymore
// https://issuetracker.google.com/issues/80475496
// But it decodes as a ResBoolean, which makes no sense. So force it to empty
if (type.equalsIgnoreCase("id") && !body.isEmpty()) {
body = "";
}
// check for using attrib as node or item
String tagName = item ? "item" : type;