From 6576748f6bbd320bf5d0f274f2662ad83e3dbaf1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ryszard=20Wi=C5=9Bniewski?= Date: Wed, 1 Sep 2010 19:23:13 +0200 Subject: [PATCH] Fixed an error, when there are missing resources in type, which does not have default config. --- src/brut/androlib/res/decoder/ARSCDecoder.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/brut/androlib/res/decoder/ARSCDecoder.java b/src/brut/androlib/res/decoder/ARSCDecoder.java index 4a142227..2719ab34 100644 --- a/src/brut/androlib/res/decoder/ARSCDecoder.java +++ b/src/brut/androlib/res/decoder/ARSCDecoder.java @@ -302,7 +302,7 @@ public class ARSCDecoder { ResValue value = new ResBoolValue(false); ResResource res = new ResResource( - mPkg.getConfig(new ResConfigFlags()), spec, value); + mPkg.getOrCreateConfig(new ResConfigFlags()), spec, value); mPkg.addResource(res); mConfig.addResource(res); spec.addResource(res);