clear selectedIds in sync with deselection

pull/1/head
Michael Kirk 7 years ago
parent d85350bf8f
commit 3e032f55cd

@ -369,7 +369,12 @@ class ImagePickerGridController: UICollectionViewController, PhotoLibraryDelegat
return
}
selectedIds = Set()
collectionView.indexPathsForSelectedItems?.forEach { collectionView.deselectItem(at: $0, animated: false)}
if isInBatchSelectMode {
updateDoneButton()
}
}
// MARK: - PhotoLibraryDelegate

Loading…
Cancel
Save