fix: write dummy resources as items

This commit is contained in:
Connor Tumbleson 2021-07-04 09:49:59 -04:00
parent a36be82c48
commit e4654e0b5f
No known key found for this signature in database
GPG Key ID: C3CC0A201EC7DA75
1 changed files with 5 additions and 0 deletions

View File

@ -81,6 +81,11 @@ public abstract class ResScalarValue extends ResIntBasedValue implements
}
}
// Dummy attributes should be <item> with type attribute
if (res.getResSpec().isDummyResSpec()) {
item = true;
}
// 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