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

Commit 4d1b8c91 authored by Kartar Singh's avatar Kartar Singh
Browse files

Use correct method to call JNI method with void return type

Test: Testedy locally using an app which cretes an input receiver and
calls AInputReceiver_release, no crash was observed after the fix.
BUG: 368251173
Change-Id: Ib4fc8d839e546bf15b6ab95b2053a1e30cddb832

Change-Id: I9128ff93a570ab57df57cc4ee2d7052a15bde6e8
parent 9e36084a
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
@@ -69,7 +69,7 @@ void removeInputChannel(const sp<IBinder>& clientToken) {
    JNIEnv* env = AndroidRuntime::getJNIEnv();

    ScopedLocalRef<jobject> clientTokenObj(env, javaObjectForIBinder(env, clientToken));
    env->CallStaticObjectMethod(gWindowManagerGlobal.clazz, gWindowManagerGlobal.removeInputChannel,
    env->CallStaticVoidMethod(gWindowManagerGlobal.clazz, gWindowManagerGlobal.removeInputChannel,
                              clientTokenObj.get());
}