android - Keyboard repeats the last word from the previously typed string -
there's bug here it's marked obsolete , closed.
so it's pretty title , linked post say:
if i'm typing word , hit send [to clear edittext], next time bring keyboard, has last word previous time, still there.
i paused in debug inside beforetextchanged()
, found edittext empty. when jump ontextchanged()
last word typed appended beginning of string.
i tested on:
- meizu mx5 android 5.1.0 - no problem
- lg g4 android 6.0 (2 devices) - problem
- lg g4s android 5.1.1 - no problem
i think problem in keyboard apk itself.
note users reported happening in different applications (including whatsapp) i'm seeing in development app believe workaround exists. tried comparing length of text in beforetextchanged()
, ontextchanged()
, if difference > 1 crop text , take last character. produced other problems (e.g when copy text edittext apparently beforetextchanged()
called once , not once each character workaround doesn't work. or if have setting insert auto-spacing after punctuation mark on beforetextchanged()
called once well).
a guy here says happens on blackberry , suggests workaround add android:inputtype="textfilter|textmultiline"
downside have typing-prediction off.
so there fix or workaround this?
update:
textfilter
doesn't solve textnosuggestions
does. better workaround without disabling text suggestion?
Comments
Post a Comment