|
|
@ -1940,12 +1940,18 @@ public class FragmentCompose extends FragmentBase {
|
|
|
|
for (String group : groups)
|
|
|
|
for (String group : groups)
|
|
|
|
map.put(group, main.addSubMenu(Menu.NONE, order, order++, group));
|
|
|
|
map.put(group, main.addSubMenu(Menu.NONE, order, order++, group));
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
NumberFormat NF = NumberFormat.getNumberInstance();
|
|
|
|
for (EntityAnswer answer : answers) {
|
|
|
|
for (EntityAnswer answer : answers) {
|
|
|
|
if (answer.favorite)
|
|
|
|
if (answer.favorite)
|
|
|
|
continue;
|
|
|
|
continue;
|
|
|
|
order++;
|
|
|
|
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;
|
|
|
|
MenuItem item;
|
|
|
|
if (answer.group == null)
|
|
|
|
if (answer.group == null)
|
|
|
|