Browse Source

iOS: Change editing verification method with swipe right event

Signed-off-by: Jean-Baptiste Kempf <jb@videolan.org>
Soomin Lee 8 years ago
parent
commit
8002483095
1 changed files with 2 additions and 2 deletions
  1. 2 2
      Sources/VLCLibraryViewController.m

+ 2 - 2
Sources/VLCLibraryViewController.m

@@ -832,9 +832,9 @@ static NSString *kUsingTableViewToShowData = @"UsingTableViewToShowData";
 #pragma mark - Gesture Action
 - (void)swipeRightOnTableViewCellGestureAction:(UIGestureRecognizer *)recognizer
 {
-    if ([[self.editButtonItem title] isEqualToString:NSLocalizedString(@"BUTTON_CANCEL", nil)])
+    if (self.tableView.isEditing) {
         [self setEditing:NO animated:YES];
-    else {
+    } else {
         [self setEditing:YES animated:YES];
 
         NSIndexPath *path = [self.tableView indexPathForRowAtPoint:[recognizer locationInView:self.tableView]];