Added support to wizard menu

This commit is contained in:
M66B 2021-06-15 10:12:17 +02:00
parent 41eb45935d
commit a1a5ba0157
1 changed files with 6 additions and 0 deletions

View File

@ -209,6 +209,9 @@ public class FragmentSetup extends FragmentBase {
ss.setSpan(new RelativeSizeSpan(0.9f), 0, ss.length(), 0); ss.setSpan(new RelativeSizeSpan(0.9f), 0, ss.length(), 0);
menu.add(Menu.NONE, R.string.title_setup_pop3, order++, ss); menu.add(Menu.NONE, R.string.title_setup_pop3, order++, ss);
menu.add(Menu.NONE, R.string.menu_faq, order++, R.string.menu_faq)
.setIcon(R.drawable.twotone_support_24);
popupMenu.insertIcons(context); popupMenu.insertIcons(context);
popupMenu.setOnMenuItemClickListener(new PopupMenu.OnMenuItemClickListener() { popupMenu.setOnMenuItemClickListener(new PopupMenu.OnMenuItemClickListener() {
@ -239,6 +242,9 @@ public class FragmentSetup extends FragmentBase {
} else if (itemId == R.string.title_setup_pop3) { } else if (itemId == R.string.title_setup_pop3) {
lbm.sendBroadcast(new Intent(ActivitySetup.ACTION_QUICK_POP3)); lbm.sendBroadcast(new Intent(ActivitySetup.ACTION_QUICK_POP3));
return true; return true;
} else if (itemId == R.string.menu_faq) {
Helper.view(getContext(), Helper.getSupportUri(getContext()), false);
return true;
} }
if (item.getIntent() == null) if (item.getIntent() == null)