Shark attack

pull/199/head
M66B 3 years ago
parent 4d70e1d0cb
commit 9f37e5b162

@ -2975,7 +2975,9 @@ public class FragmentMessages extends FragmentBase implements SharedPreferences.
SpannableString ss = new SpannableString(title);
if (account.name != null && account.color != null) {
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)
.setIcon(R.drawable.twotone_drive_file_move_24);

Loading…
Cancel
Save