mirror of
https://github.com/revanced/Apktool.git
synced 2024-12-05 02:22:55 +01: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;
|
||||
}
|
||||
|
||||
public void setFrameworkTag(String tag) {
|
||||
public void setFrameworkTag(String tag) throws AndrolibException {
|
||||
mFrameTag = tag;
|
||||
if (mResTable != null) {
|
||||
mResTable.setFrameTag(tag);
|
||||
if (hasResources()) {
|
||||
getResTable().setFrameTag(tag);
|
||||
}
|
||||
}
|
||||
|
||||
@ -180,8 +180,9 @@ public class ApkDecoder {
|
||||
mAndrolib.writeMetaFile(mOutDir, meta);
|
||||
}
|
||||
|
||||
private void putUsesFramework(Map<String, Object> meta) {
|
||||
Set<ResPackage> pkgs = mResTable.listFramePackages();
|
||||
private void putUsesFramework(Map<String, Object> meta)
|
||||
throws AndrolibException {
|
||||
Set<ResPackage> pkgs = getResTable().listFramePackages();
|
||||
if (pkgs.isEmpty()) {
|
||||
return;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user