Cleanup when we show the mark as played/unplayed menus.
This commit is contained in:
parent
95cc133e0a
commit
326e3b7b52
|
@ -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);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue