Revert "Colored letters for favorites"

This reverts commit df7bf8e285.
This commit is contained in:
M66B
2022-01-23 16:15:27 +01:00
parent df7bf8e285
commit bd86a49875
2 changed files with 10 additions and 24 deletions

View File

@@ -2911,16 +2911,8 @@ public class FragmentMessages extends FragmentBase implements SharedPreferences.
if (data.answers != null) {
int order = 100;
for (EntityAnswer answer : data.answers) {
SpannableStringBuilder ssb = new SpannableStringBuilder(answer.name);
int first = answer.name.codePointAt(0);
int count = Character.charCount(first);
ssb.setSpan(new ForegroundColorSpan(answer.color), 0, count, 0);
ssb.setSpan(new StyleSpan(Typeface.BOLD), 0, count, 0);
ssb.setSpan(new RelativeSizeSpan(HtmlHelper.FONT_LARGE), 0, count, 0);
order++;
popupMenu.getMenu().add(Menu.FIRST, order, order, ssb)
popupMenu.getMenu().add(Menu.FIRST, order, order, answer.name)
.setIcon(R.drawable.twotone_star_24)
.setIntent(new Intent().putExtra("id", answer.id));
}