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

View file

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