Skip to content

Commit

Permalink
fix: set dummy attributes to same type (@null)
Browse files Browse the repository at this point in the history
  • Loading branch information
iBotPeaches committed Nov 28, 2020
1 parent 75aec40 commit 5a54b47
Showing 1 changed file with 4 additions and 2 deletions.
Expand Up @@ -516,9 +516,11 @@ private void addMissingResSpecs() throws AndrolibException {
mType = mPkg.getOrCreateConfig(new ResConfigFlags());
}

ResValue value = new ResBoolValue(false, 0, null);
ResResource res = new ResResource(mType, spec, value);
// We are going to make dummy attributes a null reference (@null) now instead of a boolean false.
// This is because aapt2 is much more strict when it comes to what we can put in an application.
ResValue value = new ResReferenceValue(mPkg, 0, "");

ResResource res = new ResResource(mType, spec, value);
mPkg.addResource(res);
mType.addResource(res);
spec.addResource(res);
Expand Down

0 comments on commit 5a54b47

Please sign in to comment.