Is there a possibility to disable the long-click event on the 'EditText' control?
Because when I have text in it that is clickable, when a short click is made, everything works fine, but when a long-click is made, the application on Xiaomi devices crashes with the following message:
I've attached a small demo project and video so you can see what's going on. Thank you!!!
Because when I have text in it that is clickable, when a short click is made, everything works fine, but when a long-click is made, the application on Xiaomi devices crashes with the following message:
B4X:
You have clicked on word: 1
You have clicked on word: 2
** Activity (main) Pause, UserClosed = false **
** Activity (main) Resume **
java.lang.NullPointerException: Attempt to invoke virtual method 'int android.widget.Editor$SelectionModifierCursorController.getMinTouchOffset()' on a null object reference
at android.widget.Editor.touchPositionIsInSelection(Editor.java:1091)
at android.widget.Editor.performLongClick(Editor.java:1212)
at android.widget.TextView.performLongClick(TextView.java:10916)
at android.view.View.performLongClick(View.java:6368)
at android.view.View$CheckForLongPress.run(View.java:24776)
at android.os.Handler.handleCallback(Handler.java:794)
at android.os.Handler.dispatchMessage(Handler.java:99)
at android.os.Looper.loop(Looper.java:176)
at android.app.ActivityThread.main(ActivityThread.java:6651)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:547)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:824)
I've attached a small demo project and video so you can see what's going on. Thank you!!!