mirror of
https://github.com/revanced/Apktool.git
synced 2024-12-05 02:22:55 +01:00
fix: set dummy attributes to same type (@null)
This commit is contained in:
parent
75aec40505
commit
5a54b472d1
@ -516,9 +516,11 @@ public class ARSCDecoder {
|
||||
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);
|
||||
|
Loading…
Reference in New Issue
Block a user