Fix move to top/bottom

This commit is contained in:
Martin Fietz 2015-05-11 23:29:52 +02:00
parent 298b02b0aa
commit 1bf0216788
1 changed files with 2 additions and 2 deletions

View File

@ -72,10 +72,10 @@ public class FeedItemMenuHandler {
} }
boolean isInQueue = queueAccess.contains(selectedItem.getId()); boolean isInQueue = queueAccess.contains(selectedItem.getId());
if(queueAccess.size() == 0 || queueAccess.get(0) != selectedItem.getId()) { if(queueAccess.size() == 0 || queueAccess.get(0) == selectedItem.getId()) {
mi.setItemVisibility(R.id.move_to_top_item, false); mi.setItemVisibility(R.id.move_to_top_item, false);
} }
if(queueAccess.size() == 0 || queueAccess.get(queueAccess.size()-1) != selectedItem.getId()) { if(queueAccess.size() == 0 || queueAccess.get(queueAccess.size()-1) == selectedItem.getId()) {
mi.setItemVisibility(R.id.move_to_bottom_item, false); mi.setItemVisibility(R.id.move_to_bottom_item, false);
} }
if (!isInQueue || isPlaying) { if (!isInQueue || isPlaying) {