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

cleaning

Signed-off-by: Marino Faggiana <8616947+marinofaggiana@users.noreply.github.com>
Marino Faggiana 1 жил өмнө
parent
commit
bec13d3ab0

+ 7 - 0
iOSClient/AppDelegate.swift

@@ -827,6 +827,9 @@ class AppDelegate: UIResponder, UIApplicationDelegate, UNUserNotificationCenterD
     func passcodeAlert(_ passcodeViewController: TOPasscodeViewController) {
     func passcodeAlert(_ passcodeViewController: TOPasscodeViewController) {
 
 
         passcodeViewController.biometricButton.isHidden = true
         passcodeViewController.biometricButton.isHidden = true
+        passcodeViewController.passcodeView.resetPasscode(animated: true, playImpact: false)
+        passcodeViewController.setContentHidden(true, animated: true)
+
         let alertController = UIAlertController(title: NSLocalizedString("_passcode_counter_fail_", comment: ""), message: nil, preferredStyle: .alert)
         let alertController = UIAlertController(title: NSLocalizedString("_passcode_counter_fail_", comment: ""), message: nil, preferredStyle: .alert)
         passcodeViewController.present(alertController, animated: true, completion: { })
         passcodeViewController.present(alertController, animated: true, completion: { })
 
 
@@ -838,12 +841,16 @@ class AppDelegate: UIResponder, UIApplicationDelegate, UNUserNotificationCenterD
                 NCKeychain().passcodeSecondsFail += 1
                 NCKeychain().passcodeSecondsFail += 1
                 timer.invalidate()
                 timer.invalidate()
                 alertController.dismiss(animated: true)
                 alertController.dismiss(animated: true)
+                passcodeViewController.setContentHidden(false, animated: true)
             }
             }
         }
         }
     }
     }
 
 
     func passcodeResetApp(_ passcodeViewController: TOPasscodeViewController) {
     func passcodeResetApp(_ passcodeViewController: TOPasscodeViewController) {
 
 
+        passcodeViewController.passcodeView.resetPasscode(animated: true, playImpact: false)
+        passcodeViewController.setContentHidden(true, animated: true)
+
         let alertController = UIAlertController(title: NSLocalizedString("_failes_attemps_reset_", comment: ""), message: nil, preferredStyle: .alert)
         let alertController = UIAlertController(title: NSLocalizedString("_failes_attemps_reset_", comment: ""), message: nil, preferredStyle: .alert)
         passcodeViewController.present(alertController, animated: true, completion: { })
         passcodeViewController.present(alertController, animated: true, completion: { })