Hide play/enqueue for play all headers

This commit is contained in:
Christopher Eby 2012-02-20 23:09:20 -06:00
parent 20517a8281
commit 9715a39b3d

View File

@ -647,10 +647,12 @@ public class LibraryActivity
else
menu.setHeaderTitle(view.getTitle());
menu.add(0, MENU_PLAY, 0, R.string.play).setIntent(intent);
if (!isHeader)
menu.add(0, MENU_PLAY, 0, R.string.play).setIntent(intent);
if (isAllAdapter)
menu.add(0, MENU_PLAY_ALL, 0, R.string.play_all).setIntent(intent);
menu.add(0, MENU_ENQUEUE, 0, R.string.enqueue).setIntent(intent);
if (!isHeader)
menu.add(0, MENU_ENQUEUE, 0, R.string.enqueue).setIntent(intent);
if (isAllAdapter)
menu.add(0, MENU_ENQUEUE_ALL, 0, R.string.enqueue_all).setIntent(intent);
if (type == MediaUtils.TYPE_PLAYLIST) {