Skip to content
This repository was archived by the owner on Feb 25, 2025. It is now read-only.

Commit 9acfb7d

Browse files
authored
Fix JNI void vs object method call (#23785)
1 parent fa7aebf commit 9acfb7d

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

shell/platform/android/platform_view_android_jni_impl.cc

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1539,9 +1539,8 @@ bool PlatformViewAndroidJNIImpl::RequestDartDeferredLibrary(
15391539
return true;
15401540
}
15411541

1542-
env->CallObjectMethod(java_object.obj(),
1543-
g_request_dart_deferred_library_method,
1544-
loading_unit_id);
1542+
env->CallVoidMethod(java_object.obj(), g_request_dart_deferred_library_method,
1543+
loading_unit_id);
15451544

15461545
FML_CHECK(CheckException(env));
15471546
return true;

0 commit comments

Comments
 (0)