Commit 8b2d5d6e authored by Geoffrey Métais's avatar Geoffrey Métais

Add "Play" context menu option for albums

parent 7f942942
......@@ -204,6 +204,7 @@ public class AudioAlbumsSongsFragment extends Fragment implements SwipeRefreshLa
}
if (!AndroidDevices.isPhone())
menu.setGroupVisible(R.id.phone_only, false);
menu.findItem(R.id.audio_list_browser_play).setVisible(true);
}
@Override
......
......@@ -387,10 +387,8 @@ public class AudioBrowserFragment extends MediaBrowserFragment implements SwipeR
menu.setGroupVisible(R.id.songs_view_only, false);
menu.setGroupVisible(R.id.phone_only, false);
}
if (pos == MODE_ARTIST || pos == MODE_GENRE) {
MenuItem play = menu.findItem(R.id.audio_list_browser_play);
play.setVisible(true);
}
if (pos == MODE_ARTIST || pos == MODE_GENRE || pos == MODE_ALBUM)
menu.findItem(R.id.audio_list_browser_play).setVisible(true);
if (pos != MODE_SONG && pos != MODE_PLAYLIST)
menu.findItem(R.id.audio_list_browser_delete).setVisible(false);
if (!AndroidDevices.isPhone())
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment