Fix crash when removing video from playlist

This commit is contained in:
Bnyro 2023-01-06 21:39:34 +01:00
parent f084b1ec06
commit 7318f7863d

View File

@ -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)