Cleanup when we show the mark as played/unplayed menus.

This commit is contained in:
Tom Hennen 2015-10-08 03:14:27 -04:00
parent 95cc133e0a
commit 326e3b7b52
1 changed files with 2 additions and 3 deletions

View File

@ -100,10 +100,9 @@ public class FeedItemMenuHandler {
mi.setItemVisibility(R.id.share_download_url_with_position_item, false); mi.setItemVisibility(R.id.share_download_url_with_position_item, false);
} }
if (!(state == FeedItem.State.UNREAD || state == FeedItem.State.IN_PROGRESS)) { if (selectedItem.isPlayed()) {
mi.setItemVisibility(R.id.mark_read_item, false); mi.setItemVisibility(R.id.mark_read_item, false);
} } else {
if (!(state == FeedItem.State.IN_PROGRESS || state == FeedItem.State.READ)) {
mi.setItemVisibility(R.id.mark_unread_item, false); mi.setItemVisibility(R.id.mark_unread_item, false);
} }