瀏覽代碼

AppDelegate: move playing and opening media behind password check

Carola Nitz 6 年之前
父節點
當前提交
4ca0080dfd
共有 1 個文件被更改,包括 3 次插入1 次删除
  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;