Explorar o código

iOS: Passcode setting off on cancel (closes #18137)

Signed-off-by: Jean-Baptiste Kempf <jb@videolan.org>
Soomin Lee %!s(int64=8) %!d(string=hai) anos
pai
achega
7b6d638440
Modificáronse 1 ficheiros con 3 adicións e 0 borrados
  1. 3 0
      Sources/VLCSettingsController.m

+ 3 - 0
Sources/VLCSettingsController.m

@@ -94,6 +94,9 @@
 - (void)PAPasscodeViewControllerDidCancel:(PAPasscodeViewController *)controller
 {
     [[VLCKeychainCoordinator defaultCoordinator] setPasscode:nil];
+
+    //Set manually the value to NO to disable the UISwitch.
+    [[NSUserDefaults standardUserDefaults] setBool:NO forKey:kVLCSettingPasscodeOnKey];
     [self didChangePasscodeStatus:NO];
 
     [controller dismissViewControllerAnimated:YES completion:nil];