mirror of https://github.com/M66B/FairEmail.git
Shark attack
This commit is contained in:
parent
4d70e1d0cb
commit
9f37e5b162
|
@ -2975,7 +2975,9 @@ public class FragmentMessages extends FragmentBase implements SharedPreferences.
|
||||||
SpannableString ss = new SpannableString(title);
|
SpannableString ss = new SpannableString(title);
|
||||||
if (account.name != null && account.color != null) {
|
if (account.name != null && account.color != null) {
|
||||||
int i = title.indexOf(account.name);
|
int i = title.indexOf(account.name);
|
||||||
ss.setSpan(new ForegroundColorSpan(account.color), i, i + 1, 0);
|
int first = title.codePointAt(i);
|
||||||
|
int count = Character.charCount(first);
|
||||||
|
ss.setSpan(new ForegroundColorSpan(account.color), i, i + count, 0);
|
||||||
}
|
}
|
||||||
MenuItem item = popupMenu.getMenu().add(Menu.NONE, R.string.title_move_to_account, order++, ss)
|
MenuItem item = popupMenu.getMenu().add(Menu.NONE, R.string.title_move_to_account, order++, ss)
|
||||||
.setIcon(R.drawable.twotone_drive_file_move_24);
|
.setIcon(R.drawable.twotone_drive_file_move_24);
|
||||||
|
|
Loading…
Reference in New Issue