Skip to content

Commit

Permalink
refine
Browse files Browse the repository at this point in the history
  • Loading branch information
bofeng-song committed Dec 13, 2024
1 parent 2f049c0 commit 028763f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion native/cocos/platform/java/jni/JniHelper.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 028763f

Please sign in to comment.