summaryrefslogtreecommitdiffstats
path: root/core/java/android/content/res
diff options
context:
space:
mode:
authorGilles Debunne <debunne@google.com>2010-08-19 15:29:24 -0700
committerAndroid Git Automerger <android-git-automerger@android.com>2010-08-19 15:29:24 -0700
commitbbe5fb2b73172a6b42b3406354a3556bd53916e1 (patch)
treed642233d6b52303c64038964a052f54896c63ad6 /core/java/android/content/res
parent9a5c6e4f56e574e7591d8d3af1c2b64053df407f (diff)
parent189de2820932fd5dc98b9639fdc420a57cfa2316 (diff)
downloadframeworks_base-bbe5fb2b73172a6b42b3406354a3556bd53916e1.zip
frameworks_base-bbe5fb2b73172a6b42b3406354a3556bd53916e1.tar.gz
frameworks_base-bbe5fb2b73172a6b42b3406354a3556bd53916e1.tar.bz2
am 189de282: Merge "Fix for a Resource system bug that displayed the wrong name for missing asset." into gingerbread
Merge commit '189de2820932fd5dc98b9639fdc420a57cfa2316' into gingerbread-plus-aosp * commit '189de2820932fd5dc98b9639fdc420a57cfa2316': Fix for a Resource system bug that displayed the wrong name for missing asset.
Diffstat (limited to 'core/java/android/content/res')
-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;
}