Fix for issue where pan selection won't update bottom bar
This commit is contained in:
parent
3591a35c5f
commit
eb6d403eee
@ -203,6 +203,8 @@ class ImagePickerGridController: UICollectionViewController, PhotoLibraryDelegat
|
||||
let attachmentPromise: Promise<SignalAttachment> = photoCollectionContents.outgoingAttachment(for: asset)
|
||||
delegate.imagePicker(self, didSelectAsset: asset, attachmentPromise: attachmentPromise)
|
||||
collectionView.selectItem(at: indexPath, animated: true, scrollPosition: [])
|
||||
updateDoneButtonAppearance()
|
||||
|
||||
case .deselect:
|
||||
guard isSelected(indexPath: indexPath) else {
|
||||
return
|
||||
@ -210,6 +212,7 @@ class ImagePickerGridController: UICollectionViewController, PhotoLibraryDelegat
|
||||
|
||||
delegate.imagePicker(self, didDeselectAsset: asset)
|
||||
collectionView.deselectItem(at: indexPath, animated: true)
|
||||
updateDoneButtonAppearance()
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user