Browse Source

rename func

Signed-off-by: marinofaggiana <marino@marinofaggiana.com>
marinofaggiana 3 years ago
parent
commit
3e091fbeff
3 changed files with 5 additions and 5 deletions
  1. 3 3
      iOSClient/AppDelegate.swift
  2. 1 1
      iOSClient/Utility/CCUtility.h
  3. 1 1
      iOSClient/Utility/CCUtility.m

+ 3 - 3
iOSClient/AppDelegate.swift

@@ -298,7 +298,7 @@ class AppDelegate: UIResponder, UIApplicationDelegate, UNUserNotificationCenterD
     private func showPrivacyProtectionWindow() {
         
         if !CCUtility.getPrivacyScreen() { return }
-        if CCUtility.isPasscodeEnableAtStart() { return }
+        if CCUtility.isPasscodeAtStartEnabled() { return }
         
         privacyProtectionWindow = UIWindow(frame: UIScreen.main.bounds)
           
@@ -739,7 +739,7 @@ class AppDelegate: UIResponder, UIApplicationDelegate, UNUserNotificationCenterD
         }
                 
         if account == "" { return }
-        if !CCUtility.isPasscodeEnableAtStart() { return }
+        if !CCUtility.isPasscodeAtStartEnabled() { return }
                 
         // Dismiss present window?.rootViewController? [ONLY PASSCODE]
         let presentedViewController = window?.rootViewController?.presentedViewController
@@ -778,7 +778,7 @@ class AppDelegate: UIResponder, UIApplicationDelegate, UNUserNotificationCenterD
         
         if account == "" { return }
         if !CCUtility.getEnableTouchFaceID() { return }
-        if !CCUtility.isPasscodeEnableAtStart() { return }
+        if !CCUtility.isPasscodeAtStartEnabled() { return }
         guard let passcodeViewController = window?.rootViewController?.presentedViewController as? TOPasscodeViewController else { return }
 
         LAContext().evaluatePolicy(.deviceOwnerAuthenticationWithBiometrics, localizedReason: NCBrandOptions.shared.brand) { (success, error) in

+ 1 - 1
iOSClient/Utility/CCUtility.h

@@ -51,7 +51,7 @@
 + (BOOL)getEnableTouchFaceID;
 + (void)setEnableTouchFaceID:(BOOL)set;
 
-+ (BOOL)isPasscodeEnableAtStart;
++ (BOOL)isPasscodeAtStartEnabled;
 
 + (NSString *)getGroupBySettings;
 + (void)setGroupBySettings:(NSString *)groupby;

+ 1 - 1
iOSClient/Utility/CCUtility.m

@@ -103,7 +103,7 @@
     [UICKeyChainStore setString:sSet forKey:@"enableTouchFaceID" service:NCGlobal.shared.serviceShareKeyChain];
 }
 
-+ (BOOL)isPasscodeEnableAtStart
++ (BOOL)isPasscodeAtStartEnabled
 {
     if ([self getPasscode].length > 0 && ![self getNotPasscodeAtStart]) return true;
     else return false;