Esempio n. 1
0
  /* OnMultiselectListener implementation */
  @Override
  public void onOKPressed() {
    switch (mMultiSelect.bannerState) {
      case ADDING:
        super.addSongList(mSongAdapter.getSelectedSongs(), mMultiSelect.addMode);
        break;

      case PLAYLIST:
        break;
    }

    mSongAdapter.clearSelection();
    setAllUnselected();
  }
Esempio n. 2
0
  @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))));
  }