From b1e1e3914c8be41c83d3f6e7c71e53dffcd43f16 Mon Sep 17 00:00:00 2001 From: Prabir Pradhan Date: Thu, 16 Dec 2021 03:28:20 -0800 Subject: 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 --- include/android/input.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'include/android/input.h') 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 } -- cgit v1.2.3-59-g8ed1b