Pārlūkot izejas kodu

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

Felix Paul Kühne 9 gadi atpakaļ
vecāks
revīzija
4ac90c5986
1 mainītis faili ar 5 papildinājumiem un 1 dzēšanām
  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];
+            }
+        }
     }
 }