@ -40,7 +40,7 @@ class GifPickerViewController: OWSViewController, UISearchBarDelegate, UICollect
var noResultsView : UILabel ?
var noResultsView : UILabel ?
var searchErrorView : UILabel ?
var searchErrorView : UILabel ?
var activityIndicator : UIActivityIndicatorView ?
var activityIndicator : UIActivityIndicatorView ?
var selectedCell: UICollectionViewCell ?
var hasSelectedCell: Bool = false
var imageInfos = [ GiphyImageInfo ] ( )
var imageInfos = [ GiphyImageInfo ] ( )
var reachability : Reachability ?
var reachability : Reachability ?
@ -312,11 +312,11 @@ class GifPickerViewController: OWSViewController, UISearchBarDelegate, UICollect
return
return
}
}
guard self . selectedCell = = nil else {
guard self . hasSelectedCell = = false else {
owsFail ( " \( TAG ) Already selected cell " )
owsFail ( " \( TAG ) Already selected cell " )
return
return
}
}
self . selectedCell = cell
self . hasSelectedCell = true
// F a d e o u t a l l c e l l s e x c e p t t h e s e l e c t e d o n e .
// F a d e o u t a l l c e l l s e x c e p t t h e s e l e c t e d o n e .
let maskingView = OWSBezierPathView ( )
let maskingView = OWSBezierPathView ( )