Commit 4649b8f7 authored by Adrien Maglo's avatar Adrien Maglo

Audio browser: fix the media deletion

parent 651536d1
......@@ -258,8 +258,8 @@ public class AudioAlbumsSongsFragment extends SherlockFragment {
new VlcRunnable(mSongsAdapter.getItem(groupPosition)) {
@Override
public void run(Object o) {
Media aMedia = (Media) o;
mMediaLibrary.getMediaItems().remove(aMedia);
AudioBrowserListAdapter.ListItem listItem = (AudioBrowserListAdapter.ListItem)o;
mMediaLibrary.getMediaItems().remove(listItem.mMediaList.get(0));
updateList();
}
});
......
......@@ -254,8 +254,8 @@ public class AudioBrowserFragment extends SherlockFragment {
new VlcRunnable(mSongsAdapter.getItem(groupPosition)) {
@Override
public void run(Object o) {
Media aMedia = (Media) o;
mMediaLibrary.getMediaItems().remove(aMedia);
AudioBrowserListAdapter.ListItem listItem = (AudioBrowserListAdapter.ListItem)o;
mMediaLibrary.getMediaItems().remove(listItem.mMediaList.get(0));
updateLists();
}
});
......
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