From 9715a39b3d0b311bd89c5fc06bebea4ecd185576 Mon Sep 17 00:00:00 2001 From: Christopher Eby Date: Mon, 20 Feb 2012 23:09:20 -0600 Subject: [PATCH] Hide play/enqueue for play all headers --- src/org/kreed/vanilla/LibraryActivity.java | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/org/kreed/vanilla/LibraryActivity.java b/src/org/kreed/vanilla/LibraryActivity.java index e39d7ac0..1a17714d 100644 --- a/src/org/kreed/vanilla/LibraryActivity.java +++ b/src/org/kreed/vanilla/LibraryActivity.java @@ -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) {