mirror of
https://github.com/moparisthebest/k-9
synced 2025-01-13 06:38:05 -05:00
Hide 'mark as (un)read' and '(un)flag' in the message list context menu
This commit is contained in:
parent
0f7ad3a20d
commit
fad52e6dac
@ -1757,11 +1757,15 @@ public class MessageList extends K9ListActivity implements OnItemClickListener,
|
||||
menu.setHeaderTitle(message.message.getSubject());
|
||||
|
||||
if (message.read) {
|
||||
menu.findItem(R.id.mark_as_read).setTitle(R.string.mark_as_unread_action);
|
||||
menu.findItem(R.id.mark_as_read).setVisible(false);
|
||||
} else {
|
||||
menu.findItem(R.id.mark_as_unread).setVisible(false);
|
||||
}
|
||||
|
||||
if (message.flagged) {
|
||||
menu.findItem(R.id.flag).setTitle(R.string.unflag_action);
|
||||
menu.findItem(R.id.flag).setVisible(false);
|
||||
} else {
|
||||
menu.findItem(R.id.unflag).setVisible(false);
|
||||
}
|
||||
|
||||
Account account = message.message.getFolder().getAccount();
|
||||
|
Loading…
Reference in New Issue
Block a user