Removed legend menu from folder options

pull/146/head
M66B 6 years ago
parent b05cf3e129
commit 037513907c

@ -221,8 +221,6 @@ public class AdapterFolder extends RecyclerView.Adapter<AdapterFolder.ViewHolder
if (folder.account != null) if (folder.account != null)
popupMenu.getMenu().add(Menu.NONE, action_edit_properties, 4, R.string.title_edit_properties); popupMenu.getMenu().add(Menu.NONE, action_edit_properties, 4, R.string.title_edit_properties);
popupMenu.getMenu().add(Menu.NONE, action_legend, 5, R.string.menu_legend);
popupMenu.setOnMenuItemClickListener(new PopupMenu.OnMenuItemClickListener() { popupMenu.setOnMenuItemClickListener(new PopupMenu.OnMenuItemClickListener() {
@Override @Override
public boolean onMenuItemClick(MenuItem target) { public boolean onMenuItemClick(MenuItem target) {
@ -243,10 +241,6 @@ public class AdapterFolder extends RecyclerView.Adapter<AdapterFolder.ViewHolder
onActionEditProperties(); onActionEditProperties();
return true; return true;
case action_legend:
onActionLegend();
return true;
default: default:
return false; return false;
} }
@ -356,11 +350,6 @@ public class AdapterFolder extends RecyclerView.Adapter<AdapterFolder.ViewHolder
new Intent(ActivityView.ACTION_EDIT_FOLDER) new Intent(ActivityView.ACTION_EDIT_FOLDER)
.putExtra("id", folder.id)); .putExtra("id", folder.id));
} }
private void onActionLegend() {
LocalBroadcastManager lbm = LocalBroadcastManager.getInstance(context);
lbm.sendBroadcast(new Intent(ActivityView.ACTION_SHOW_LEGEND));
}
}); });
popupMenu.show(); popupMenu.show();

Loading…
Cancel
Save