mirror of
https://github.com/libre-tube/LibreTube.git
synced 2024-12-14 14:20:30 +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) {
|
fun removeFromPlaylist(context: Context, position: Int) {
|
||||||
videoFeed.removeAt(position)
|
videoFeed.removeAt(position)
|
||||||
|
visibleCount -= 1
|
||||||
(context as Activity).runOnUiThread {
|
(context as Activity).runOnUiThread {
|
||||||
notifyItemRemoved(position)
|
notifyItemRemoved(position)
|
||||||
notifyItemRangeChanged(position, itemCount)
|
notifyItemRangeChanged(position, itemCount)
|
||||||
|
Loading…
Reference in New Issue
Block a user