xabber-android
xabber-android copied to clipboard
Samsung Keyboard copying last word in Chat Input EditText
Device: Samsung Galaxy A5 (2016) Android Version 6.0.1 Xabber 2.1(405) downloaded from Play Store
You have sent a text message by typing in the Chat Input EditText and pressing send button. Then if you type a new message, the samsung keyboard copies the last word from the previous message and append it in the beginning of your new message. I have only observed this on Samsung Keyboards.
It does not happen when you end the previous message with a punctuation mark (.?!)

Device: S7 (Stock Android 7, Stock Keyboard)
I can confirm this. I noticed that some time ago, but thought that was an exclusive "feature" on my device only 😄.
Maybe you should post this issue to developers of Samsung keyboard? We don't have plenty of their devices, but on those few we tested Xabber ob, everything worked correctly just like on any Android.
Just how happened to see a girl with Samsung S8, pressed her into installing Xabber, didn't see anything wrong with Xabber, just atrocious Samsung's 'improvements' to stock android.
I think I found what's causing the problem.
@andrewnenakhov I noticed in your video, that you were not using "auto correct" feature. When I start typing e.g. "he" I see a line below with word suggestions "hello", "hell" etc. So I disabled that on my device and the issue was gone.
@casperklein I'd love to test it more, but chasing girls around and pressing them to give me their phones for some testing might get me in trouble. :-D
I fully understand that :D
@andrewnenakhov @casperklein Yeah disabling "auto-correct" does stop this behaviour but it's not a solution.A user would very much like to have this enabled while using a chat app. Suggested solutions on stackoverflow tell you to try different combinations of inputType params in EditText like android:inputType="textShortMessage|textAutoCorrect|textCapSentences|textMultiLine"
but still no luck.
@cdotindia my solution to problems with Samsung devices is to not use their devices. Early experience with Samsung Galaxy i7500 left so much frustration that I never regret that decision. So unless someone lends us device with issues to test it, we'd rather work on more pressing issues.
I have the same issue, and this is NOT a Samsung keyboard issue. It seems that it is a bug of using called methods. Because WIRE app had the same bug and yesterday WIRE app had updated their Android client with the following comments: - Sometimes text from previous message would be appended to a new message
@andrewnenakhov, I had reviewed their commits to Android client, and found exact commit that relate to fixing this bug, please check this:
[AN-5692] clears the cursor text with setText instead of getText.clear https://github.com/wireapp/wire-android/commit/73805a4acda2c0720ef22e7138d00f32048a1e6a
[AN-5692] [AN-5711] clears the cursor text with setText instead of getText.clear #1201 https://github.com/wireapp/wire-android/pull/1201
In addition, I had found an issue with this problem details description: https://github.com/wireapp/wire-android/issues/1213
This bug is REALLY annoying.
@ghsrcgh it's hard to fix bug that occurs on some (shitty) manufacturer device without actually having that device. And since our patreon campaign is going rather... underwhelming, we'd rather concentrate on things that are more important to us. Hope you understand.
But we'll gladly accept pull request with fix to this bug, if you, or someone, will make one.