mirror of
https://github.com/oxen-io/session-android.git
synced 2024-11-27 20:15:21 +00:00
Merge pull request #238 from KeeJef/dev
Add a Space After Inserting a Mention
This commit is contained in:
commit
d9dfca4d07
@ -438,7 +438,7 @@ public class ConversationActivity extends PassphraseRequiredActionBarActivity
|
|||||||
mentionCandidateSelectionView.setOnMentionCandidateSelected( mentionCandidate -> {
|
mentionCandidateSelectionView.setOnMentionCandidateSelected( mentionCandidate -> {
|
||||||
mentions.add(mentionCandidate);
|
mentions.add(mentionCandidate);
|
||||||
String oldText = composeText.getText().toString();
|
String oldText = composeText.getText().toString();
|
||||||
String newText = oldText.substring(0, currentMentionStartIndex) + "@" + mentionCandidate.getDisplayName();
|
String newText = oldText.substring(0, currentMentionStartIndex) + "@" + mentionCandidate.getDisplayName() + " ";
|
||||||
composeText.setText(newText);
|
composeText.setText(newText);
|
||||||
composeText.setSelection(newText.length());
|
composeText.setSelection(newText.length());
|
||||||
currentMentionStartIndex = -1;
|
currentMentionStartIndex = -1;
|
||||||
|
Loading…
Reference in New Issue
Block a user