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