From 31082335973a46cf52635b18b0a5c39bd80c2eb1 Mon Sep 17 00:00:00 2001 From: yunhanw-google Date: Mon, 8 Jan 2024 11:19:13 -0800 Subject: [PATCH] Fix JNI Typo for UnpairDeviceCallback.OnError (#31300) --- src/controller/java/AndroidCurrentFabricRemover.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/controller/java/AndroidCurrentFabricRemover.cpp b/src/controller/java/AndroidCurrentFabricRemover.cpp index 4c4ab28412719c..1029177ae3db31 100644 --- a/src/controller/java/AndroidCurrentFabricRemover.cpp +++ b/src/controller/java/AndroidCurrentFabricRemover.cpp @@ -38,7 +38,7 @@ AndroidCurrentFabricRemover::AndroidCurrentFabricRemover(DeviceController * cont env->ExceptionClear(); } - mOnErrorMethod = env->GetMethodID(callbackClass, "onError", "(JI)V"); + mOnErrorMethod = env->GetMethodID(callbackClass, "onError", "(IJ)V"); if (mOnErrorMethod == nullptr) { ChipLogError(Controller, "Failed to access callback 'onError' method");