# HG changeset patch # User bsmith@81767d24-ef19-dc11-ae90-00e081727c95 # Date 1620599953 0 # Node ID 9fd26efff9dade12ed80485d3b55625ecf80d973 # Parent d5c3c573c74eb78267332331221ceb2096e754fa Android: Implement dw_mle_delete() so that the tested output is correct. diff -r d5c3c573c74e -r 9fd26efff9da android/dw.cpp --- a/android/dw.cpp Sun May 09 21:51:31 2021 +0000 +++ b/android/dw.cpp Sun May 09 22:39:13 2021 +0000 @@ -2109,6 +2109,18 @@ */ void API dw_mle_delete(HWND handle, int startpoint, int length) { + JNIEnv *env; + + if((env = (JNIEnv *)pthread_getspecific(_dw_env_key))) + { + // First get the class that contains the method you need to call + jclass clazz = _dw_find_class(env, DW_CLASS_NAME); + // Get the method that you want to call + jmethodID mleDelete = env->GetMethodID(clazz, "mleDelete", + "(Landroid/widget/EditText;II)V"); + // Call the method on the object + env->CallVoidMethod(_dw_obj, mleDelete, handle, startpoint, length); + } } /*