summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGilles Debunne <debunne@google.com>2010-08-21 09:44:34 -0700
committerAndroid Git Automerger <android-git-automerger@android.com>2010-08-21 09:44:34 -0700
commit0c0250c8515f8b2502db6472c16f99980b7a4101 (patch)
treecc1a5404b72d5348b910688863610b1144e00f34
parent4723c222f76b6d8c5406efd74a68096934e2f3ba (diff)
parentbbe5fb2b73172a6b42b3406354a3556bd53916e1 (diff)
downloadframeworks_base-0c0250c8515f8b2502db6472c16f99980b7a4101.zip
frameworks_base-0c0250c8515f8b2502db6472c16f99980b7a4101.tar.gz
frameworks_base-0c0250c8515f8b2502db6472c16f99980b7a4101.tar.bz2
am bbe5fb2b: am 189de282: Merge "Fix for a Resource system bug that displayed the wrong name for missing asset." into gingerbread
Merge commit 'bbe5fb2b73172a6b42b3406354a3556bd53916e1' * commit 'bbe5fb2b73172a6b42b3406354a3556bd53916e1': Fix for a Resource system bug that displayed the wrong name for missing asset.
-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;
}