mirror of
https://github.com/revanced/Apktool.git
synced 2025-01-05 17:45:52 +01:00
ResResSpec +hasResource() +hasDefaultResource().
This commit is contained in:
parent
d8a9c97f23
commit
df39ed5488
@ -57,10 +57,22 @@ public class ResResSpec {
|
||||
return res;
|
||||
}
|
||||
|
||||
public boolean hasResource(ResConfig config) {
|
||||
return hasResource(config.getFlags());
|
||||
}
|
||||
|
||||
private boolean hasResource(ResConfigFlags flags) {
|
||||
return mResources.containsKey(flags);
|
||||
}
|
||||
|
||||
public ResResource getDefaultResource() throws AndrolibException {
|
||||
return getResource(new ResConfigFlags());
|
||||
}
|
||||
|
||||
public boolean hasDefaultResource() {
|
||||
return mResources.containsKey(new ResConfigFlags());
|
||||
}
|
||||
|
||||
public String getFullName() {
|
||||
return getFullName(false, false);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user