From 28fa48704d4084617d7e32e4a10f785c4b996163 Mon Sep 17 00:00:00 2001 From: iNPUTmice Date: Sun, 31 Aug 2014 17:48:00 +0200 Subject: [PATCH] add missing blank before nick --- src/eu/siacs/conversations/ui/ConversationFragment.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/eu/siacs/conversations/ui/ConversationFragment.java b/src/eu/siacs/conversations/ui/ConversationFragment.java index f4af72773..77049e560 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 + " "); } }