mirror of
https://github.com/M66B/FairEmail.git
synced 2024-12-25 09:17:58 +00:00
Removed legend menu from folder options
This commit is contained in:
parent
b05cf3e129
commit
037513907c
1 changed files with 0 additions and 11 deletions
|
@ -221,8 +221,6 @@ public class AdapterFolder extends RecyclerView.Adapter<AdapterFolder.ViewHolder
|
|||
if (folder.account != null)
|
||||
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() {
|
||||
@Override
|
||||
public boolean onMenuItemClick(MenuItem target) {
|
||||
|
@ -243,10 +241,6 @@ public class AdapterFolder extends RecyclerView.Adapter<AdapterFolder.ViewHolder
|
|||
onActionEditProperties();
|
||||
return true;
|
||||
|
||||
case action_legend:
|
||||
onActionLegend();
|
||||
return true;
|
||||
|
||||
default:
|
||||
return false;
|
||||
}
|
||||
|
@ -356,11 +350,6 @@ public class AdapterFolder extends RecyclerView.Adapter<AdapterFolder.ViewHolder
|
|||
new Intent(ActivityView.ACTION_EDIT_FOLDER)
|
||||
.putExtra("id", folder.id));
|
||||
}
|
||||
|
||||
private void onActionLegend() {
|
||||
LocalBroadcastManager lbm = LocalBroadcastManager.getInstance(context);
|
||||
lbm.sendBroadcast(new Intent(ActivityView.ACTION_SHOW_LEGEND));
|
||||
}
|
||||
});
|
||||
|
||||
popupMenu.show();
|
||||
|
|
Loading…
Reference in a new issue