mirror of
https://github.com/moparisthebest/Yaaic
synced 2024-11-26 10:52:16 -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:
parent
dc95472aaf
commit
a9621b66b4
@ -939,6 +939,7 @@ public class ConversationActivity extends Activity implements ServiceConnection,
|
|||||||
input.getText().replace(start, end, nick, 0, nick.length());
|
input.getText().replace(start, end, nick, 0, nick.length());
|
||||||
// put cursor after inserted text
|
// put cursor after inserted text
|
||||||
input.setSelection(start + nick.length());
|
input.setSelection(start + nick.length());
|
||||||
|
input.clearComposingText();
|
||||||
input.post(new Runnable() {
|
input.post(new Runnable() {
|
||||||
@Override
|
@Override
|
||||||
public void run() {
|
public void run() {
|
||||||
|
Loading…
Reference in New Issue
Block a user