Commit f505f503 authored by Soomin Lee's avatar Soomin Lee Committed by Jean-Baptiste Kempf

iOS: Fix removal of all gesture recognizer (closes #16837)

Signed-off-by: Jean-Baptiste Kempf's avatarJean-Baptiste Kempf <jb@videolan.org>
parent ebd67be9
......@@ -670,12 +670,11 @@ static NSString *kUsingTableViewToShowData = @"UsingTableViewToShowData";
if (_libraryMode == VLCLibraryModeAllFiles) {
if (self.collectionView.collectionViewLayout != _folderLayout) {
for (UIGestureRecognizer *recognizer in _collectionView.gestureRecognizers) {
if (recognizer != _folderLayout.panGestureRecognizer ||
recognizer != _folderLayout.longPressGestureRecognizer ||
recognizer != _longPressGestureRecognizer)
if (recognizer == _reorderLayout.panGestureRecognizer ||
recognizer == _reorderLayout.longPressGestureRecognizer) {
[self.collectionView removeGestureRecognizer:recognizer];
}
}
[self.collectionView setCollectionViewLayout:_folderLayout animated:NO];
[self.collectionView addGestureRecognizer:_longPressGestureRecognizer];
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment