From 028763fe157293c005fa33b92365cd486ad92830 Mon Sep 17 00:00:00 2001 From: bofeng Date: Fri, 13 Dec 2024 17:57:07 +0800 Subject: [PATCH] refine --- native/cocos/platform/java/jni/JniHelper.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/native/cocos/platform/java/jni/JniHelper.cpp b/native/cocos/platform/java/jni/JniHelper.cpp index 339c591282e..a4a39778059 100644 --- a/native/cocos/platform/java/jni/JniHelper.cpp +++ b/native/cocos/platform/java/jni/JniHelper.cpp @@ -204,7 +204,7 @@ jobject JniHelper::getContext() { jobject JniHelper::getActivity() { // TODO(cjh): In normal mode, sContext is Activity itself, but in surface-less mode, we need to // returns nullptr. - return sContext; + return sActivity; } void JniHelper::setActivity(jobject activity) {