Only use tags when they are loaded

This commit is contained in:
Martin Fietz 2016-01-20 15:38:29 +01:00
parent 880fd1dcd6
commit 94b5f491b7
1 changed files with 4 additions and 1 deletions

View File

@ -72,7 +72,10 @@ public class FeedItemMenuHandler {
mi.setItemVisibility(R.id.skip_episode_item, false);
}
boolean isInQueue = selectedItem.isTagged(FeedItem.TAG_QUEUE);
boolean isInQueue = false;
if(queueAccess != null) {
isInQueue = queueAccess.contains(selectedItem.getId());
}
if(queueAccess == null || queueAccess.size() == 0 || queueAccess.get(0) == selectedItem.getId()) {
mi.setItemVisibility(R.id.move_to_top_item, false);
}