End select mode after hitting delete

// FREEBIE
pull/1/head
Michael Kirk 7 years ago
parent 6e3de94e99
commit 405edaa125

@ -482,6 +482,10 @@ public class MediaTileViewController: UICollectionViewController, MediaGalleryDa
@objc @objc
func didCancelSelect(_ sender: Any) { func didCancelSelect(_ sender: Any) {
endSelectMode()
}
func endSelectMode() {
isInBatchSelectMode = false isInBatchSelectMode = false
guard let collectionView = self.collectionView else { guard let collectionView = self.collectionView else {
@ -537,6 +541,7 @@ public class MediaTileViewController: UICollectionViewController, MediaGalleryDa
let deleteAction = UIAlertAction(title: confirmationTitle, style: .destructive) { _ in let deleteAction = UIAlertAction(title: confirmationTitle, style: .destructive) { _ in
mediaGalleryDataSource.delete(items: items) mediaGalleryDataSource.delete(items: items)
self.endSelectMode()
} }
let actionSheet = UIAlertController(title: nil, message: nil, preferredStyle: .actionSheet) let actionSheet = UIAlertController(title: nil, message: nil, preferredStyle: .actionSheet)

Loading…
Cancel
Save