private fun deleteDownloadItems(items: Set<DownloadItem>) { updatePendingDownloadToDelete(items) MainScope().allowUndo( requireActivity().getRootView()!!, getMultiSelectSnackBarMessage(items), getString(R.string.bookmark_undo_deletion), onCancel = { undoPendingDeletion(items) }, operation = getDeleteDownloadItemsOperation(items), ) }
Schedules [items] for deletion. Note: When tapping on a download item's "trash" button (itemView.overflow_menu) this [items].size() will be 1.