소스 검색

Fix corner case leading to Touch ID query even if disabled or worse on iOS 7

Felix Paul Kühne 9 년 전
부모
커밋
4ac90c5986
1개의 변경된 파일5개의 추가작업 그리고 1개의 파일을 삭제
  1. 5 1
      Sources/VLCKeychainCoordinator.m

+ 5 - 1
Sources/VLCKeychainCoordinator.m

@@ -66,7 +66,11 @@ NSString *const VLCPasscode = @"org.videolan.vlc-ios.passcode";
 {
     /* our touch ID session is killed by the OS if the app moves to background, so re-init */
     if (_inValidation) {
-        [self _touchIDQuery];
+        if (SYSTEM_RUNS_IOS8_OR_LATER) {
+            if ([[NSUserDefaults standardUserDefaults] boolForKey:kVLCSettingPasscodeAllowTouchID]) {
+                [self _touchIDQuery];
+            }
+        }
     }
 }