[Android] Exit delete process for non media items
Geoffrey Métais
git at videolan.org
Fri Apr 27 14:55:14 CEST 2018
vlc-android | branch: master | Geoffrey Métais <geoffrey.metais at gmail.com> | Fri Apr 27 11:23:54 2018 +0200| [83dd95894637b46a45aa5f62aa2024f6703a7e07] | committer: Geoffrey Métais
Exit delete process for non media items
> https://code.videolan.org/videolan/vlc-android/commit/83dd95894637b46a45aa5f62aa2024f6703a7e07
---
vlc-android/src/org/videolan/vlc/gui/audio/AudioBrowserFragment.java | 1 +
1 file changed, 1 insertion(+)
diff --git a/vlc-android/src/org/videolan/vlc/gui/audio/AudioBrowserFragment.java b/vlc-android/src/org/videolan/vlc/gui/audio/AudioBrowserFragment.java
index b37d7a6aa..886be3db0 100644
--- a/vlc-android/src/org/videolan/vlc/gui/audio/AudioBrowserFragment.java
+++ b/vlc-android/src/org/videolan/vlc/gui/audio/AudioBrowserFragment.java
@@ -275,6 +275,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 AudioModel provider = getProvider();
More information about the Android
mailing list