summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGilles Debunne <debunne@google.com>2010-08-19 15:27:12 -0700
committerAndroid (Google) Code Review <android-gerrit@google.com>2010-08-19 15:27:12 -0700
commit189de2820932fd5dc98b9639fdc420a57cfa2316 (patch)
tree59a40088e2e3ff91df4ea38ac07149fd5080138f
parent18ef37258d897928c68b89535a93b99d8a817d3c (diff)
parent75399683a418fff55539e6028341caa2e7572362 (diff)
downloadframeworks_base-189de2820932fd5dc98b9639fdc420a57cfa2316.zip
frameworks_base-189de2820932fd5dc98b9639fdc420a57cfa2316.tar.gz
frameworks_base-189de2820932fd5dc98b9639fdc420a57cfa2316.tar.bz2
Merge "Fix for a Resource system bug that displayed the wrong name for missing asset." into gingerbread
-rw-r--r--core/java/android/content/res/TypedArray.java4
1 files changed, 1 insertions, 3 deletions
diff --git a/core/java/android/content/res/TypedArray.java b/core/java/android/content/res/TypedArray.java
index b0c149d..37fdeb6 100644
--- a/core/java/android/content/res/TypedArray.java
+++ b/core/java/android/content/res/TypedArray.java
@@ -708,9 +708,7 @@ public class TypedArray {
outValue.resourceId = data[index+AssetManager.STYLE_RESOURCE_ID];
outValue.changingConfigurations = data[index+AssetManager.STYLE_CHANGING_CONFIGURATIONS];
outValue.density = data[index+AssetManager.STYLE_DENSITY];
- if (type == TypedValue.TYPE_STRING) {
- outValue.string = loadStringValueAt(index);
- }
+ outValue.string = (type == TypedValue.TYPE_STRING) ? loadStringValueAt(index) : null;
return true;
}