/* OnMultiselectListener implementation */ @Override public void onOKPressed() { switch (mMultiSelect.bannerState) { case ADDING: super.addSongList(mSongAdapter.getSelectedSongs(), mMultiSelect.addMode); break; case PLAYLIST: break; } mSongAdapter.clearSelection(); setAllUnselected(); }
@Override public void onRowLongPressed(View view, Object item) { extrasMenu.forceHide(); mMultiSelect.setItemCount( mSongAdapter.toggleSelection( mListView.getChildAt((Integer) item - mListView.getFirstVisiblePosition()), ((Song) mListView.getItemAtPosition((Integer) item)))); }