Merge "Add fallback case to layers_extensions.cpp"

This commit is contained in:
Victor Khimenko
2018-08-28 20:24:33 +00:00
committed by Gerrit Code Review

View File

@@ -29,7 +29,8 @@ void setDriverPath(JNIEnv* env, jobject clazz, jstring path) {
}
void setLayerPaths_native(JNIEnv* env, jobject clazz, jobject classLoader, jstring layerPaths) {
android_namespace_t* appNamespace = android::FindNamespaceByClassLoader(env, classLoader);
android::NativeLoaderNamespace* appNamespace = android::FindNativeLoaderNamespaceByClassLoader(
env, classLoader);
ScopedUtfChars layerPathsChars(env, layerPaths);
android::GraphicsEnv::getInstance().setLayerPaths(appNamespace, layerPathsChars.c_str());
}