mirror of
https://github.com/libre-tube/LibreTube.git
synced 2024-12-13 22:00:30 +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)
|
||||
}
|
||||
watchHistory.removeAt(position)
|
||||
visibleCount -= 1
|
||||
notifyItemRemoved(position)
|
||||
notifyItemRangeChanged(position, itemCount)
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user