Restore call to notifyDatasetChanged() on long press
This commit is contained in:
parent
34bea9f7f6
commit
8c85eae120
1 changed files with 10 additions and 2 deletions
|
@ -114,9 +114,17 @@ class TracksAdapter(
|
|||
|
||||
override fun getItemKeyPosition(key: Int) = tracks.indexOfFirst { it.hashCode() == key }
|
||||
|
||||
override fun onActionModeCreated() {}
|
||||
override fun onActionModeCreated() {
|
||||
if (isPlaylistContent) {
|
||||
notifyItemRangeChanged(0, itemCount)
|
||||
}
|
||||
}
|
||||
|
||||
override fun onActionModeDestroyed() {}
|
||||
override fun onActionModeDestroyed() {
|
||||
if (isPlaylistContent) {
|
||||
notifyItemRangeChanged(0, itemCount)
|
||||
}
|
||||
}
|
||||
|
||||
private fun addToPlaylist() {
|
||||
activity.addTracksToPlaylist(getSelectedTracks()) {
|
||||
|
|
Loading…
Reference in a new issue