Fix issue #94 - Missing "@" when mentioning an account from the profile.

This commit is contained in:
Thomas 2022-05-24 09:16:58 +02:00
parent 08a9bcedb6
commit 0ce4dbe238
1 changed files with 2 additions and 2 deletions

View File

@ -224,9 +224,9 @@ public class ComposeAdapter extends RecyclerView.Adapter<RecyclerView.ViewHolder
final SharedPreferences sharedpreferences = PreferenceManager.getDefaultSharedPreferences(context);
boolean capitalize = sharedpreferences.getBoolean(context.getString(R.string.SET_CAPITALIZE), true);
if (capitalize) {
statusDraft.text = mentionedAccount.acct + "\n";
statusDraft.text = "@" + mentionedAccount.acct + "\n";
} else {
statusDraft.text = mentionedAccount.acct + " ";
statusDraft.text = "@" + mentionedAccount.acct + " ";
}
holder.binding.content.setText(statusDraft.text);
updateCharacterCount(holder);