|
|
|
@ -56,6 +56,7 @@ class ImagePickerGridController: UICollectionViewController, PhotoLibraryDelegat
|
|
|
|
|
target: self,
|
|
|
|
|
action: #selector(didPressCancel))
|
|
|
|
|
|
|
|
|
|
if #available(iOS 11, *) {
|
|
|
|
|
titleLabel.text = photoCollection.localizedTitle()
|
|
|
|
|
titleLabel.textColor = Theme.primaryColor
|
|
|
|
|
titleLabel.font = UIFont.ows_dynamicTypeBody.ows_mediumWeight()
|
|
|
|
@ -71,6 +72,9 @@ class ImagePickerGridController: UICollectionViewController, PhotoLibraryDelegat
|
|
|
|
|
titleView.isUserInteractionEnabled = true
|
|
|
|
|
titleView.addGestureRecognizer(UITapGestureRecognizer(target: self, action: #selector(titleTapped)))
|
|
|
|
|
navigationItem.titleView = titleView
|
|
|
|
|
} else {
|
|
|
|
|
navigationItem.title = photoCollection.localizedTitle()
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
let featureFlag_isMultiselectEnabled = true
|
|
|
|
|
if featureFlag_isMultiselectEnabled {
|
|
|
|
@ -242,7 +246,11 @@ class ImagePickerGridController: UICollectionViewController, PhotoLibraryDelegat
|
|
|
|
|
photoCollection = collection
|
|
|
|
|
photoCollectionContents = photoCollection.contents()
|
|
|
|
|
|
|
|
|
|
if #available(iOS 11, *) {
|
|
|
|
|
titleLabel.text = photoCollection.localizedTitle()
|
|
|
|
|
} else {
|
|
|
|
|
navigationItem.title = photoCollection.localizedTitle()
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
collectionView?.reloadData()
|
|
|
|
|
}
|
|
|
|
|