Explorar el Código

AppDelegate: move playing and opening media behind password check

Carola Nitz hace 6 años
padre
commit
4ca0080dfd
Se han modificado 1 ficheros con 3 adiciones y 1 borrados
  1. 3 1
      Sources/VLCAppDelegate.m

+ 3 - 1
Sources/VLCAppDelegate.m

@@ -184,7 +184,9 @@ continueUserActivity:(NSUserActivity *)userActivity
             APLog(@"%s file not found: %@",__PRETTY_FUNCTION__,userActivity);
             return NO;
         }
-        [[VLCPlaybackController sharedInstance] openMediaLibraryObject:managedObject];
+        [self validatePasscodeIfNeededWithCompletion:^{
+            [[VLCPlaybackController sharedInstance] openMediaLibraryObject:managedObject];
+        }];
         return YES;
     }
     return NO;