changeset 2525:9fd26efff9da

Android: Implement dw_mle_delete() so that the tested output is correct.
author bsmith@81767d24-ef19-dc11-ae90-00e081727c95
date Sun, 09 May 2021 22:39:13 +0000
parents d5c3c573c74e
children d3f09b3f3703
files android/dw.cpp
diffstat 1 files changed, 12 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- 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);
+    }
 }
 
 /*