Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit eac760d2 authored by Victor Khimenko's avatar Victor Khimenko Committed by android-build-merger
Browse files

Merge "Add fallback case to layers_extensions.cpp"

am: 46e75a69

Change-Id: I64ab2e76d6555131d7e1a6b6d2b2b92b040d9405
parents 4c9108ca 46e75a69
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -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());
}