浏览代码

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 */
     /* our touch ID session is killed by the OS if the app moves to background, so re-init */
     if (_inValidation) {
     if (_inValidation) {
-        [self _touchIDQuery];
+        if (SYSTEM_RUNS_IOS8_OR_LATER) {
+            if ([[NSUserDefaults standardUserDefaults] boolForKey:kVLCSettingPasscodeAllowTouchID]) {
+                [self _touchIDQuery];
+            }
+        }
     }
     }
 }
 }