unbreak removeItem() to swipe-away playlist entries
This commit is contained in:
parent
d35992f3c4
commit
736da85770
@ -225,12 +225,8 @@ public class PlaylistAdapter extends CursorAdapter implements Handler.Callback {
|
|||||||
changeCursor(runQuery());
|
changeCursor(runQuery());
|
||||||
}
|
}
|
||||||
|
|
||||||
public void removeItem(int position)
|
public void removeItem(int position) {
|
||||||
{
|
MediaLibrary.removeFromPlaylist(mContext, MediaLibrary.PlaylistSongColumns._ID+"="+getItemId(position), null);
|
||||||
//ContentResolver resolver = mContext.getContentResolver();
|
|
||||||
//Uri uri = MediaStore.Audio.Playlists.Members.getContentUri("external", mPlaylistId);
|
|
||||||
//resolver.delete(ContentUris.withAppendedId(uri, getItemId(position)), null, null);
|
|
||||||
// FIXME OBSOLETED
|
|
||||||
mUiHandler.sendEmptyMessage(MSG_RUN_QUERY);
|
mUiHandler.sendEmptyMessage(MSG_RUN_QUERY);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user