diff options
author | iNPUTmice <daniel@gultsch.de> | 2014-08-31 17:48:00 +0200 |
---|---|---|
committer | iNPUTmice <daniel@gultsch.de> | 2014-08-31 17:48:00 +0200 |
commit | 28fa48704d4084617d7e32e4a10f785c4b996163 (patch) | |
tree | 1464629cfea64c9f1f2ec3ebd8d823ea13513e21 /src/eu/siacs | |
parent | 4793081c2c89c669241f7f4998d7c745e03f49e3 (diff) |
add missing blank before nick
Diffstat (limited to 'src/eu/siacs')
-rw-r--r-- | src/eu/siacs/conversations/ui/ConversationFragment.java | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/eu/siacs/conversations/ui/ConversationFragment.java b/src/eu/siacs/conversations/ui/ConversationFragment.java index f4af7277..77049e56 100644 --- a/src/eu/siacs/conversations/ui/ConversationFragment.java +++ b/src/eu/siacs/conversations/ui/ConversationFragment.java @@ -290,6 +290,9 @@ public class ConversationFragment extends Fragment { if (oldString.isEmpty() || mEditMessage.getSelectionStart() == 0) { mEditMessage.getText().insert(0, nick + ": "); } else { + if (mEditMessage.getText().charAt(mEditMessage.getSelectionStart()-1)!=' ') { + nick = " "+nick; + } mEditMessage.getText().insert(mEditMessage.getSelectionStart(), nick + " "); } } |