Commit 412253ae authored by Geoffrey Métais's avatar Geoffrey Métais

Exit delete process for non media items

parent ab9e6f2d
......@@ -248,6 +248,7 @@ public class AudioBrowserFragment extends BaseAudioBrowser implements SwipeRefre
final MediaLibraryItem mediaItem = adapter.getItem(position);
if (id == R.id.audio_list_browser_delete) {
if (mediaItem.getItemType() != MediaLibraryItem.TYPE_MEDIA) return false;
final MediaLibraryItem previous = position > 0 ? adapter.getItem(position-1) : null;
final MediaLibraryItem next = position < adapter.getItemCount()-1 ? adapter.getItem(position+1) : null;
final String message;
......
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