From 1bf02167887247b543f6e821d02ac641ba6039b8 Mon Sep 17 00:00:00 2001 From: Martin Fietz Date: Mon, 11 May 2015 23:29:52 +0200 Subject: Fix move to top/bottom --- .../java/de/danoeh/antennapod/menuhandler/FeedItemMenuHandler.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/src/main/java/de/danoeh/antennapod/menuhandler/FeedItemMenuHandler.java b/app/src/main/java/de/danoeh/antennapod/menuhandler/FeedItemMenuHandler.java index a58666056..fe1a09149 100644 --- a/app/src/main/java/de/danoeh/antennapod/menuhandler/FeedItemMenuHandler.java +++ b/app/src/main/java/de/danoeh/antennapod/menuhandler/FeedItemMenuHandler.java @@ -72,10 +72,10 @@ public class FeedItemMenuHandler { } 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); } - 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); } if (!isInQueue || isPlaying) { -- cgit v1.2.3