UpdatesScreen: Fix selection state after deleting download (#8100)

This commit is contained in:
Ivan Iskandar
2022-09-28 04:44:41 +07:00
committed by GitHub
parent f19c288bec
commit 633bd6eb46
4 changed files with 4 additions and 3 deletions
@@ -274,7 +274,7 @@ class UpdatesPresenter(
if (deletedUpdates.isEmpty()) return@launchNonCancellable
// TODO: Don't do this fake status update
state.items = items.toMutableList().apply {
state.items = state.items.toMutableList().apply {
deletedUpdates.forEach { deletedUpdate ->
val modifiedIndex = indexOf(deletedUpdate)
val item = removeAt(modifiedIndex).copy(