mirror of
https://github.com/M66B/FairEmail.git
synced 2024-12-31 20:25:38 +00:00
Show composer zoom level
This commit is contained in:
parent
0465d26537
commit
9d1176ec5f
2 changed files with 10 additions and 1 deletions
|
@ -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…
Reference in a new issue