mirror of
https://github.com/libre-tube/LibreTube.git
synced 2024-12-14 06:10:31 +05:30
Fix crash when removing video from playlist
This commit is contained in:
parent
f084b1ec06
commit
7318f7863d
@ -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