Эх сурвалжийг харах

rename func

Signed-off-by: marinofaggiana <marino@marinofaggiana.com>
marinofaggiana 3 жил өмнө
parent
commit
3e091fbeff

+ 3 - 3
iOSClient/AppDelegate.swift

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

+ 1 - 1
iOSClient/Utility/CCUtility.h

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

+ 1 - 1
iOSClient/Utility/CCUtility.m

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