Mercurial > dwindows
diff android/dw.cpp @ 2701:9df2c11f020f
Android: Fix dw_mle_set_word_wrap() and dw_mle_set_cursor().
Calling the wrong method in dw_mle_set_cursor().
Set maxWidth on MLE resize based on Word Wrap setting.
author | bsmith@81767d24-ef19-dc11-ae90-00e081727c95 |
---|---|
date | Tue, 16 Nov 2021 20:15:18 +0000 |
parents | 4470089e14b3 |
children | 4f12dc8e8f18 |
line wrap: on
line diff
--- a/android/dw.cpp Tue Nov 16 11:26:19 2021 +0000 +++ b/android/dw.cpp Tue Nov 16 20:15:18 2021 +0000 @@ -2717,10 +2717,10 @@ // 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 mleSetWordWrap = env->GetMethodID(clazz, "mleSetWordWrap", + jmethodID mleSetCursor = env->GetMethodID(clazz, "mleSetCursor", "(Landroid/widget/EditText;I)V"); // Call the method on the object - env->CallVoidMethod(_dw_obj, mleSetWordWrap, handle, point); + env->CallVoidMethod(_dw_obj, mleSetCursor, handle, point); _dw_jni_check_exception(env); } }