Skip to content
Snippets Groups Projects
Commit a1b800c6 authored by tda1009's avatar tda1009
Browse files

Fix playlist's trackscount not updated after deleting track(s)

parent d70f7a79
No related branches found
No related tags found
1 merge request!704Fix playlist's trackscount not updated after deleting track(s)
Pipeline #21805 passed with stage
in 2 minutes and 32 seconds
......@@ -47,6 +47,7 @@ import org.videolan.libvlc.util.AndroidUtil
import org.videolan.medialibrary.interfaces.media.Artist
import org.videolan.medialibrary.media.MediaLibraryItem
import org.videolan.medialibrary.media.MediaLibraryItem.FLAG_SELECTED
import org.videolan.medialibrary.media.MediaLibraryItem.TYPE_PLAYLIST
import org.videolan.resources.AppContextProvider
import org.videolan.resources.UPDATE_SELECTION
import org.videolan.resources.interfaces.FocusListener
......@@ -360,7 +361,7 @@ class AudioBrowserAdapter @JvmOverloads constructor(
oldMedia: MediaLibraryItem, newMedia: MediaLibraryItem): Boolean {
return if (preventNextAnim) {
true
} else oldMedia === newMedia || oldMedia.itemType == newMedia.itemType && oldMedia.equals(newMedia)
} else oldMedia === newMedia || oldMedia.itemType == newMedia.itemType && oldMedia.tracksCount == newMedia.tracksCount && oldMedia.equals(newMedia)
}
override fun areContentsTheSame(
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment