diff options
author | 2021-12-16 03:22:38 -0800 | |
---|---|---|
committer | 2021-12-16 03:37:20 -0800 | |
commit | d0c5dbabd5a8b918b2590514a05da50ff84caf18 (patch) | |
tree | b2f0b48b8fef191427ee6112b0f57f2492c473b0 /native/android/input.cpp | |
parent | ca3f277231d61755a060bb60cc91fc41397d2dd8 (diff) |
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: Iae5fc5bd39c758c530185694751d6d79715ce31b
Diffstat (limited to 'native/android/input.cpp')
-rw-r--r-- | native/android/input.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/native/android/input.cpp b/native/android/input.cpp index 4de2c23e62b8..c06c81ed03ec 100644 --- a/native/android/input.cpp +++ b/native/android/input.cpp @@ -330,6 +330,6 @@ void AInputQueue_finishEvent(AInputQueue* queue, AInputEvent* event, int handled iq->finishEvent(e, handled != 0); } -AInputQueue* AInputQueue_fromJava(jobject inputQueue) { - return android::android_view_InputQueue_getNativePtr(inputQueue); +AInputQueue* AInputQueue_fromJava(JNIEnv* env, jobject inputQueue) { + return android::android_view_InputQueue_getNativePtr(env, inputQueue); } |