mirror of
https://github.com/libre-tube/LibreTube.git
synced 2024-12-14 06:10:31 +05:30
Merge pull request #2619 from Bnyro/master
Fix crash when removing video from playlist
This commit is contained in:
commit
71b94a23cc
@ -102,6 +102,7 @@ class PlaylistAdapter(
|
||||
|
||||
fun removeFromPlaylist(context: Context, position: Int) {
|
||||
videoFeed.removeAt(position)
|
||||
visibleCount -= 1
|
||||
(context as Activity).runOnUiThread {
|
||||
notifyItemRemoved(position)
|
||||
notifyItemRangeChanged(position, itemCount)
|
||||
|
Loading…
Reference in New Issue
Block a user