mirror of
https://github.com/revanced/Apktool.git
synced 2025-01-20 16:57:34 +01: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);
|
||||
mType.addResSpec(spec);
|
||||
|
||||
if (mConfig == null) {
|
||||
mConfig = mPkg.getOrCreateConfig(new ResConfigFlags());
|
||||
}
|
||||
|
||||
ResValue value = new ResBoolValue(false, null);
|
||||
ResResource res = new ResResource(
|
||||
mPkg.getOrCreateConfig(new ResConfigFlags()), spec, value);
|
||||
ResResource res = new ResResource(mConfig, spec, value);
|
||||
|
||||
mPkg.addResource(res);
|
||||
mConfig.addResource(res);
|
||||
spec.addResource(res);
|
||||
|
Loading…
x
Reference in New Issue
Block a user