mirror of
https://github.com/revanced/Apktool.git
synced 2025-04-30 22:24:25 +02:00
ApkDecoder: use getResTable() instead of mResTable directly.
This commit is contained in:
parent
b15179c8bc
commit
18c3f0cf7b
@ -121,10 +121,10 @@ public class ApkDecoder {
|
|||||||
mForceDelete = forceDelete;
|
mForceDelete = forceDelete;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setFrameworkTag(String tag) {
|
public void setFrameworkTag(String tag) throws AndrolibException {
|
||||||
mFrameTag = tag;
|
mFrameTag = tag;
|
||||||
if (mResTable != null) {
|
if (hasResources()) {
|
||||||
mResTable.setFrameTag(tag);
|
getResTable().setFrameTag(tag);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -180,8 +180,9 @@ public class ApkDecoder {
|
|||||||
mAndrolib.writeMetaFile(mOutDir, meta);
|
mAndrolib.writeMetaFile(mOutDir, meta);
|
||||||
}
|
}
|
||||||
|
|
||||||
private void putUsesFramework(Map<String, Object> meta) {
|
private void putUsesFramework(Map<String, Object> meta)
|
||||||
Set<ResPackage> pkgs = mResTable.listFramePackages();
|
throws AndrolibException {
|
||||||
|
Set<ResPackage> pkgs = getResTable().listFramePackages();
|
||||||
if (pkgs.isEmpty()) {
|
if (pkgs.isEmpty()) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user