diff --git a/app/src/main/java/eu/faircode/email/AdapterAnswer.java b/app/src/main/java/eu/faircode/email/AdapterAnswer.java index 12023803bd..b44e83b3e6 100644 --- a/app/src/main/java/eu/faircode/email/AdapterAnswer.java +++ b/app/src/main/java/eu/faircode/email/AdapterAnswer.java @@ -102,18 +102,18 @@ public class AdapterAnswer extends RecyclerView.Adapter { PopupMenuLifecycle popupMenu = new PopupMenuLifecycle(context, powner, view); - popupMenu.getMenu().add(Menu.NONE, 1, 1, R.string.title_rule_enabled) + popupMenu.getMenu().add(Menu.NONE, R.string.title_rule_enabled, 1, R.string.title_rule_enabled) .setCheckable(true).setChecked(rule.enabled); popupMenu.setOnMenuItemClickListener(new PopupMenu.OnMenuItemClickListener() { @Override public boolean onMenuItemClick(MenuItem item) { switch (item.getItemId()) { - case 1: + case R.string.title_rule_enabled: onActionEnabled(!item.isChecked()); return true; default: