diff options
Diffstat (limited to 'services/jni/com_android_server_UsbHostManager.cpp')
-rw-r--r-- | services/jni/com_android_server_UsbHostManager.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/services/jni/com_android_server_UsbHostManager.cpp b/services/jni/com_android_server_UsbHostManager.cpp index 9506d75..f1abf56 100644 --- a/services/jni/com_android_server_UsbHostManager.cpp +++ b/services/jni/com_android_server_UsbHostManager.cpp @@ -125,7 +125,7 @@ static int usb_device_removed(const char *devname, void* client_data) { jobject thiz = (jobject)client_data; jstring deviceName = env->NewStringUTF(devname); - env->CallVoidMethod(thiz, method_usbDeviceRemoved, env->NewStringUTF(devname)); + env->CallVoidMethod(thiz, method_usbDeviceRemoved, deviceName); env->DeleteLocalRef(deviceName); checkAndClearExceptionFromCallback(env, __FUNCTION__); return 0; |