Merge pull request #112 from sk22/fix/space-in-empty-reply
Fix compose containing a wrong space as initial reply text
This commit is contained in:
commit
fa75570254
|
@ -449,7 +449,7 @@ public class ComposeFragment extends MastodonToolbarFragment implements OnBackPr
|
||||||
if(!mentions.contains(m))
|
if(!mentions.contains(m))
|
||||||
mentions.add(m);
|
mentions.add(m);
|
||||||
}
|
}
|
||||||
initialText=TextUtils.join(" ", mentions)+" ";
|
initialText=mentions.isEmpty() ? "" : TextUtils.join(" ", mentions)+" ";
|
||||||
if(savedInstanceState==null){
|
if(savedInstanceState==null){
|
||||||
mainEditText.setText(initialText);
|
mainEditText.setText(initialText);
|
||||||
mainEditText.setSelection(mainEditText.length());
|
mainEditText.setSelection(mainEditText.length());
|
||||||
|
|
Loading…
Reference in New Issue