提交 1f15c2b8 编写于 作者: J Jason Simmons 提交者: GitHub

Fix an ART warning about deletion of a non-local JNI reference (#3100)

上级 f97caf27
......@@ -62,7 +62,8 @@ static void Init(JNIEnv* env,
jobject context,
jobjectArray jargs) {
base::PlatformThread::SetName("java_ui_thread");
base::android::ScopedJavaLocalRef<jobject> scoped_context(env, context);
base::android::ScopedJavaLocalRef<jobject> scoped_context(
env, env->NewLocalRef(context));
base::android::InitApplicationContext(env, scoped_context);
std::vector<std::string> args;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册