Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit b1e1e391 authored by Prabir Pradhan's avatar Prabir Pradhan
Browse files

Pass JNIEnv explicitly into AInputQueue_fromJava

Instead of assuming a JNIEnv*, the method should have the env passed
into it, which is the standard practice for native APIs.

Bug: 210727635
Test: atest InputQueueTest
Change-Id: I94d168e9370aed2081912971b82c472e18c65f12
parent d34795a6
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -1391,7 +1391,7 @@ void AInputQueue_finishEvent(AInputQueue* queue, AInputEvent* event, int handled
 *
 * Available since API level 33.
 */
AInputQueue* AInputQueue_fromJava(jobject inputQueue) __INTRODUCED_IN(33);
AInputQueue* AInputQueue_fromJava(JNIEnv* env, jobject inputQueue) __INTRODUCED_IN(33);

#ifdef __cplusplus
}