Fix move to top/bottom
This commit is contained in:
parent
298b02b0aa
commit
1bf0216788
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue