mirror of
https://github.com/flutter/flutter.git
synced 2026-02-20 02:29:02 +08:00
Merge pull request #2132 from eseidelGoogle/thread_name
Give the java ui thread a name in trace files
This commit is contained in:
commit
fff4d5b8c1
@ -60,6 +60,7 @@ static void Init(JNIEnv* env,
|
||||
jclass clazz,
|
||||
jobject context,
|
||||
jobjectArray jargs) {
|
||||
base::PlatformThread::SetName("java_ui_thread");
|
||||
base::android::ScopedJavaLocalRef<jobject> scoped_context(env, context);
|
||||
base::android::InitApplicationContext(env, scoped_context);
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user