Merge pull request #2606 from iBotPeaches/issue-2603

fix: write dummy resources as items
This commit is contained in:
Connor Tumbleson 2021-07-05 05:41:55 -04:00 committed by GitHub
commit 646f43a140
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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