This commit is contained in:
Bob Sun 2017-02-08 16:29:03 +08:00
parent 141bae7bf2
commit 364ee6c1c8
No known key found for this signature in database
GPG key ID: 1F86BA2052FED3B4

View file

@ -168,6 +168,8 @@ class SettingsTableViewController: UITableViewController {
passcodeRemoveViewController.successCallback = { _ in
self.passcodeTableViewCell.detailTextLabel?.text = "Off"
self.touchIDSwitch.isEnabled = false
let appDelegate = UIApplication.shared.delegate as! AppDelegate
appDelegate.passcodeLockPresenter = PasscodeLockPresenter(mainWindow: appDelegate.window, configuration: Globals.passcodeConfiguration)
}
self.present(passcodeRemoveViewController, animated: true, completion: nil)
}