[Android] Fix album deletion

Nicolas Pomepuy git at videolan.org
Wed Jun 16 04:28:56 UTC 2021


vlc-android | branch: master | Nicolas Pomepuy <nicolas at videolabs.io> | Tue Jun 15 12:00:41 2021 +0200| [283919f79e1ee151a60789a1e42d22545db822ee] | committer: Nicolas Pomepuy

Fix album deletion

> https://code.videolan.org/videolan/vlc-android/commit/283919f79e1ee151a60789a1e42d22545db822ee
---

 .../src/org/videolan/vlc/gui/browser/MediaBrowserFragment.kt            | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/application/vlc-android/src/org/videolan/vlc/gui/browser/MediaBrowserFragment.kt b/application/vlc-android/src/org/videolan/vlc/gui/browser/MediaBrowserFragment.kt
index f8d5119b4..84d5e20d3 100644
--- a/application/vlc-android/src/org/videolan/vlc/gui/browser/MediaBrowserFragment.kt
+++ b/application/vlc-android/src/org/videolan/vlc/gui/browser/MediaBrowserFragment.kt
@@ -162,7 +162,7 @@ abstract class MediaBrowserFragment<T : SortableModel> : BaseFragment(), Filtera
         dialog.show(requireActivity().supportFragmentManager, ConfirmDeleteDialog::class.simpleName)
         dialog.setListener {
             if (item is MediaWrapper) if (Permissions.checkWritePermission(requireActivity(), item, deletionAction)) deletionAction.run() else deletionAction.run()
-            if (item is Playlist) item.delete()
+            else deletionAction.run()
         }
         return true
     }



More information about the Android mailing list