[Android] Fix the playlist deletion

Nicolas Pomepuy git at videolan.org
Tue May 11 13:57:40 UTC 2021


vlc-android | branch: master | Nicolas Pomepuy <nicolas at videolabs.io> | Tue May 11 07:46:16 2021 +0200| [f784ee0247f3e103ed977e8776f01400ffefa3f4] | committer: Nicolas Pomepuy

Fix the playlist deletion

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

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

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 6083f9ceb..22781ee26 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,6 +162,7 @@ abstract class MediaBrowserFragment<T : SortableModel> : BaseFragment(), Filtera
         dialog.show(requireActivity().supportFragmentManager, RenameDialog::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()
         }
         return true
     }



More information about the Android mailing list