1
0
mirror of https://github.com/moparisthebest/Yaaic synced 2024-11-22 17:02:21 -05:00

Bugfix nick completion / autocorrect

Use clearComposingText() when inserting nick completion to ensure
that autocorrect doesn't try to replace the completed nick on the next
keypress; thanks Thomas Martitz for pointing out the bug
This commit is contained in:
Steven Luo 2011-05-30 23:52:28 -07:00 committed by Sebastian Kaspari
parent dc95472aaf
commit a9621b66b4

View File

@ -939,6 +939,7 @@ public class ConversationActivity extends Activity implements ServiceConnection,
input.getText().replace(start, end, nick, 0, nick.length());
// put cursor after inserted text
input.setSelection(start + nick.length());
input.clearComposingText();
input.post(new Runnable() {
@Override
public void run() {