Merge "Set default reference ID" into pi-dev

This commit is contained in:
TreeHugger Robot
2018-04-18 21:50:40 +00:00
committed by Android (Google) Code Review

View File

@@ -837,7 +837,7 @@ static jint NativeGetResourceArray(JNIEnv* env, jclass /*clazz*/, jlong ptr, jin
ResTable_config selected_config; ResTable_config selected_config;
selected_config.density = 0; selected_config.density = 0;
uint32_t flags = bag->type_spec_flags; uint32_t flags = bag->type_spec_flags;
uint32_t ref; uint32_t ref = 0;
ApkAssetsCookie cookie = ApkAssetsCookie cookie =
assetmanager->ResolveReference(entry.cookie, &value, &selected_config, &flags, &ref); assetmanager->ResolveReference(entry.cookie, &value, &selected_config, &flags, &ref);
if (cookie == kInvalidCookie) { if (cookie == kInvalidCookie) {