ResTable +hasPackage()

This commit is contained in:
Ryszard Wiśniewski 2010-04-01 17:34:16 +02:00
parent b8bbbad458
commit 79a1b564e7

View File

@ -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)