diff --git a/src/brut/androlib/res/data/ResResSpec.java b/src/brut/androlib/res/data/ResResSpec.java index 69a60291..4b9de594 100644 --- a/src/brut/androlib/res/data/ResResSpec.java +++ b/src/brut/androlib/res/data/ResResSpec.java @@ -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); }