Show composer zoom level

pull/194/merge
M66B 3 years ago
parent 0465d26537
commit 9d1176ec5f

@ -1616,6 +1616,15 @@ public class FragmentCompose extends FragmentBase {
menu.findItem(R.id.menu_answer_create).setEnabled(state == State.LOADED);
menu.findItem(R.id.menu_clear).setEnabled(state == State.LOADED);
SpannableStringBuilder ssbZoom = new SpannableStringBuilder(getString(R.string.title_zoom));
ssbZoom.append(' ');
for (int i = 0; i <= zoom; i++)
ssbZoom.append('+');
menu.findItem(R.id.menu_zoom)
.setIcon(R.drawable.twotone_format_size_24)
.setTitle(ssbZoom);
PopupMenuLifecycle.insertIcon(context, menu.findItem(R.id.menu_zoom));
int colorEncrypt = Helper.resolveColor(context, R.attr.colorEncrypt);
int colorActionForeground = Helper.resolveColor(context, R.attr.colorActionForeground);

@ -115,7 +115,7 @@ public class PopupMenuLifecycle extends PopupMenu {
}
}
private static void insertIcon(Context context, MenuItem menuItem) {
static void insertIcon(Context context, MenuItem menuItem) {
Drawable icon = menuItem.getIcon();
if (icon == null)

Loading…
Cancel
Save