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

iOS: Fix long press gesture continuous call to editmode

Signed-off-by: Jean-Baptiste Kempf's avatarJean-Baptiste Kempf <jb@videolan.org>
parent a82a31c0
......@@ -1215,7 +1215,8 @@ static NSString *kUsingTableViewToShowData = @"UsingTableViewToShowData";
- (void)_collectionViewHandleLongPressGesture:(UIGestureRecognizer *) sender
{
[self setEditing:YES animated:YES];
if (sender.state == UIGestureRecognizerStateBegan && !self.isEditing)
[self setEditing:YES animated:YES];
}
#pragma mark - UI implementation
......
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