summaryrefslogtreecommitdiff
path: root/include/android/input.h
diff options
context:
space:
mode:
author Prabir Pradhan <prabirmsp@google.com> 2021-12-16 03:28:20 -0800
committer Prabir Pradhan <prabirmsp@google.com> 2021-12-16 03:28:20 -0800
commitb1e1e3914c8be41c83d3f6e7c71e53dffcd43f16 (patch)
treed96ad9b2dca342412ee161ec626a6f14e5525c19 /include/android/input.h
parentd34795a625e9e286d277e8ce35e0961a744b87bc (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: I94d168e9370aed2081912971b82c472e18c65f12
Diffstat (limited to 'include/android/input.h')
-rw-r--r--include/android/input.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/android/input.h b/include/android/input.h
index 27587ce483..447f8fa842 100644
--- a/include/android/input.h
+++ b/include/android/input.h
@@ -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
}