add missing blank before nick
This commit is contained in:
parent
4793081c2c
commit
28fa48704d
|
@ -290,6 +290,9 @@ public class ConversationFragment extends Fragment {
|
||||||
if (oldString.isEmpty() || mEditMessage.getSelectionStart() == 0) {
|
if (oldString.isEmpty() || mEditMessage.getSelectionStart() == 0) {
|
||||||
mEditMessage.getText().insert(0, nick + ": ");
|
mEditMessage.getText().insert(0, nick + ": ");
|
||||||
} else {
|
} else {
|
||||||
|
if (mEditMessage.getText().charAt(mEditMessage.getSelectionStart()-1)!=' ') {
|
||||||
|
nick = " "+nick;
|
||||||
|
}
|
||||||
mEditMessage.getText().insert(mEditMessage.getSelectionStart(), nick + " ");
|
mEditMessage.getText().insert(mEditMessage.getSelectionStart(), nick + " ");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue