Added support menu item to error popup menu

pull/194/merge
M66B 3 years ago
parent cc8b6a05d8
commit 3511cb2b20

@ -4067,6 +4067,8 @@ public class AdapterMessage extends RecyclerView.Adapter<AdapterMessage.ViewHold
int order = 0;
popupMenu.getMenu().add(Menu.NONE, R.string.title_setup_help, order++, R.string.title_setup_help);
if (Helper.hasValidFingerprint(context) || BuildConfig.DEBUG)
popupMenu.getMenu().add(Menu.NONE, R.string.menu_faq, order++, R.string.menu_faq);
popupMenu.getMenu().add(Menu.NONE, R.string.menu_setup, order++, R.string.menu_setup);
popupMenu.getMenu().add(Menu.NONE, R.string.title_clipboard_copy, order++, R.string.title_clipboard_copy);
@ -4077,6 +4079,9 @@ public class AdapterMessage extends RecyclerView.Adapter<AdapterMessage.ViewHold
if (itemId == R.string.title_setup_help) {
onHelp();
return true;
} else if (itemId == R.string.menu_faq) {
Helper.view(context, Helper.getSupportUri(context), false);
return true;
} else if (itemId == R.string.menu_setup) {
onSettings();
return true;

Loading…
Cancel
Save