mirror of
https://github.com/M66B/FairEmail.git
synced 2025-01-01 04:35:57 +00:00
Debug answers
This commit is contained in:
parent
c2c578c8fb
commit
ba1f517e4e
2 changed files with 13 additions and 2 deletions
|
@ -1940,12 +1940,18 @@ public class FragmentCompose extends FragmentBase {
|
|||
for (String group : groups)
|
||||
map.put(group, main.addSubMenu(Menu.NONE, order, order++, group));
|
||||
|
||||
NumberFormat NF = NumberFormat.getNumberInstance();
|
||||
for (EntityAnswer answer : answers) {
|
||||
if (answer.favorite)
|
||||
continue;
|
||||
order++;
|
||||
|
||||
String name = answer.name;
|
||||
SpannableStringBuilder name = new SpannableStringBuilder(answer.name);
|
||||
if (grouped && answer.applied > 0) {
|
||||
name.append(" (").append(NF.format(answer.applied)).append(")");
|
||||
name.setSpan(new RelativeSizeSpan(HtmlHelper.FONT_SMALL),
|
||||
answer.name.length() + 1, name.length(), 0);
|
||||
}
|
||||
|
||||
MenuItem item;
|
||||
if (answer.group == null)
|
||||
|
|
|
@ -2940,7 +2940,12 @@ public class FragmentMessages extends FragmentBase implements SharedPreferences.
|
|||
for (EntityAnswer answer : answers) {
|
||||
order++;
|
||||
|
||||
String name = answer.name;
|
||||
SpannableStringBuilder name = new SpannableStringBuilder(answer.name);
|
||||
if (grouped && answer.applied > 0) {
|
||||
name.append(" (").append(NF.format(answer.applied)).append(")");
|
||||
name.setSpan(new RelativeSizeSpan(HtmlHelper.FONT_SMALL),
|
||||
answer.name.length() + 1, name.length(), 0);
|
||||
}
|
||||
|
||||
MenuItem item;
|
||||
if (answer.group == null)
|
||||
|
|
Loading…
Reference in a new issue