Fix for a Resource system bug that displayed the wrong name for missing asset.
I didn't reproduce the bug and cannot ensure that this will fix it. The monkey with identical parameters stops with an ANR. Bug http://b/issue?id=2931528 Change-Id: I45f156c6a694f2d67fe514e0f0bb367aa017f08e
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user