|
|
|
@ -634,7 +634,10 @@ public class AdapterMessage extends RecyclerView.Adapter<AdapterMessage.ViewHold
|
|
|
|
|
bnvActions.setTag(data);
|
|
|
|
|
|
|
|
|
|
bnvActions.getMenu().findItem(R.id.action_more).setVisible(!inOutbox);
|
|
|
|
|
bnvActions.getMenu().findItem(R.id.action_delete).setVisible((message.uid != null && hasTrash) || (inOutbox && !TextUtils.isEmpty(message.error)));
|
|
|
|
|
bnvActions.getMenu().findItem(R.id.action_delete).setVisible(
|
|
|
|
|
(inTrash && message.msgid != null) ||
|
|
|
|
|
(!inTrash && hasTrash && message.uid != null) ||
|
|
|
|
|
(inOutbox && !TextUtils.isEmpty(message.error)));
|
|
|
|
|
bnvActions.getMenu().findItem(R.id.action_delete).setTitle(inTrash ? R.string.title_delete : R.string.title_trash);
|
|
|
|
|
bnvActions.getMenu().findItem(R.id.action_move).setVisible(message.uid != null);
|
|
|
|
|
bnvActions.getMenu().findItem(R.id.action_archive).setVisible(message.uid != null && !inArchive && hasArchive);
|
|
|
|
|