Merge pull request #1254 from TomHennen/fix1252

Cleanup when we show the mark as played/unplayed menus.
This commit is contained in:
Tom Hennen 2015-10-12 17:29:25 -04:00
commit 87b42c23dc
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);
}
if (!(state == FeedItem.State.UNREAD || state == FeedItem.State.IN_PROGRESS)) {
if (selectedItem.isPlayed()) {
mi.setItemVisibility(R.id.mark_read_item, false);
}
if (!(state == FeedItem.State.IN_PROGRESS || state == FeedItem.State.READ)) {
} else {
mi.setItemVisibility(R.id.mark_unread_item, false);
}