mirror of
https://github.com/revanced/Apktool.git
synced 2024-12-05 02:22:55 +01:00
ResTable +hasPackage()
This commit is contained in:
parent
b8bbbad458
commit
79a1b564e7
@ -68,6 +68,14 @@ public class ResTable {
|
||||
return pkg;
|
||||
}
|
||||
|
||||
public boolean hasPackage(int id) {
|
||||
return mPackagesById.containsKey(id);
|
||||
}
|
||||
|
||||
public boolean hasPackage(String name) {
|
||||
return mPackagesByName.containsKey(name);
|
||||
}
|
||||
|
||||
public ResValue getValue(String package_, String type, String name)
|
||||
throws AndrolibException {
|
||||
return getPackage(package_).getType(type).getResSpec(name)
|
||||
|
Loading…
Reference in New Issue
Block a user