mirror of
https://github.com/revanced/Apktool.git
synced 2025-05-29 21:10:13 +02:00
Fix null mConfig in addMissingResSpecs()
This commit is contained in:
parent
dccbe33877
commit
bad8392487
@ -319,9 +319,13 @@ public class ARSCDecoder {
|
|||||||
mPkg.addResSpec(spec);
|
mPkg.addResSpec(spec);
|
||||||
mType.addResSpec(spec);
|
mType.addResSpec(spec);
|
||||||
|
|
||||||
|
if (mConfig == null) {
|
||||||
|
mConfig = mPkg.getOrCreateConfig(new ResConfigFlags());
|
||||||
|
}
|
||||||
|
|
||||||
ResValue value = new ResBoolValue(false, null);
|
ResValue value = new ResBoolValue(false, null);
|
||||||
ResResource res = new ResResource(
|
ResResource res = new ResResource(mConfig, spec, value);
|
||||||
mPkg.getOrCreateConfig(new ResConfigFlags()), spec, value);
|
|
||||||
mPkg.addResource(res);
|
mPkg.addResource(res);
|
||||||
mConfig.addResource(res);
|
mConfig.addResource(res);
|
||||||
spec.addResource(res);
|
spec.addResource(res);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user