mirror of
https://github.com/libre-tube/LibreTube.git
synced 2025-01-06 01:20:29 +05:30
Fix crash in watch history when deleting video
This commit is contained in:
parent
20584f33b2
commit
0c296ddf60
@ -31,6 +31,7 @@ class WatchHistoryAdapter(
|
|||||||
DatabaseHolder.Database.watchHistoryDao().delete(history)
|
DatabaseHolder.Database.watchHistoryDao().delete(history)
|
||||||
}
|
}
|
||||||
watchHistory.removeAt(position)
|
watchHistory.removeAt(position)
|
||||||
|
visibleCount -= 1
|
||||||
notifyItemRemoved(position)
|
notifyItemRemoved(position)
|
||||||
notifyItemRangeChanged(position, itemCount)
|
notifyItemRangeChanged(position, itemCount)
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user