add missing blank before nick

This commit is contained in:
iNPUTmice 2014-08-31 17:48:00 +02:00
parent 4793081c2c
commit 28fa48704d

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