Merge pull request #2863 from Bnyro/master

Fix crash in watch history when deleting video
This commit is contained in:
Bnyro 2023-01-24 19:52:33 +01:00 committed by GitHub
commit 24ca1229a6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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