add missing blank before nick

This commit is contained in:
iNPUTmice 2014-08-31 17:48:00 +02:00
parent 4793081c2c
commit 28fa48704d
1 changed files with 3 additions and 0 deletions

View File

@ -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 + " ");
} }
} }