diff --git a/native/android/choreographer.cpp b/native/android/choreographer.cpp index cc2fd77587871..e35c85b883e8a 100644 --- a/native/android/choreographer.cpp +++ b/native/android/choreographer.cpp @@ -82,7 +82,7 @@ private: }; -thread_local Choreographer* gChoreographer; +static thread_local Choreographer* gChoreographer; Choreographer* Choreographer::getForThread() { if (gChoreographer == nullptr) { sp looper = Looper::getForThread();