diff --git a/app/src/main/java/app/fedilab/android/mastodon/ui/drawer/ComposeAdapter.java b/app/src/main/java/app/fedilab/android/mastodon/ui/drawer/ComposeAdapter.java index dc1265a7..a500e1af 100644 --- a/app/src/main/java/app/fedilab/android/mastodon/ui/drawer/ComposeAdapter.java +++ b/app/src/main/java/app/fedilab/android/mastodon/ui/drawer/ComposeAdapter.java @@ -314,8 +314,10 @@ public class ComposeAdapter extends RecyclerView.Adapter 1) { - statusDraft.text += "\n"; + if (!mentionsAtTop) { + statusDraft.text += "\n"; + } for (int i = 1; i < statusDraft.mentions.size(); i++) { String tootTemp = String.format("@%s ", statusDraft.mentions.get(i).acct); statusDraft.text = String.format("%s ", (statusDraft.text + tootTemp.trim())); @@ -1575,8 +1579,18 @@ public class ComposeAdapter extends RecyclerView.AdapterSET_DISABLE_ANIMATED_EMOJI SET_CAPITALIZE + SET_MENTIONS_AT_TOP + SET_THEME_BASE SET_DYNAMICCOLOR SET_CARDVIEW @@ -2244,4 +2246,7 @@ Home cache Fetch home messages Automatically fetch missing messages + + Mentions at the top + When replying mentions will all be added to the beginning of the message \ No newline at end of file diff --git a/app/src/main/res/xml/pref_compose.xml b/app/src/main/res/xml/pref_compose.xml index 3bb9a7e6..52fc8276 100644 --- a/app/src/main/res/xml/pref_compose.xml +++ b/app/src/main/res/xml/pref_compose.xml @@ -13,6 +13,14 @@ app:singleLineTitle="false" app:summary="@string/set_capitalize_indication" app:title="@string/set_capitalize" /> + +