Fix crash in watch history when deleting video

This commit is contained in:
Bnyro 2023-01-24 19:52:12 +01:00
parent 20584f33b2
commit 0c296ddf60

View File

@ -31,6 +31,7 @@ class WatchHistoryAdapter(
DatabaseHolder.Database.watchHistoryDao().delete(history)
}
watchHistory.removeAt(position)
visibleCount -= 1
notifyItemRemoved(position)
notifyItemRangeChanged(position, itemCount)
}