Passcode lock

This commit is contained in:
Yishi Lin 2018-04-10 00:14:35 +08:00
parent fe80ed3dc8
commit 433562584e
6 changed files with 125 additions and 78 deletions

View file

@ -159,9 +159,6 @@ class SettingsTableViewController: UITableViewController, UITabBarControllerDele
setPGPKeyTableViewCellDetailText()
setPasswordRepositoryTableViewCellDetailText()
setPasscodeLockCell()
let appDelegate = UIApplication.shared.delegate as! AppDelegate
appDelegate.passcodeLockPresenter = PasscodeLockPresenter(mainWindow: appDelegate.window)
}
override func tableView(_ tableView: UITableView, didSelectRowAt indexPath: IndexPath) {
@ -262,8 +259,6 @@ class SettingsTableViewController: UITableViewController, UITabBarControllerDele
passcodeRemoveViewController.successCallback = {
self?.passcodeLock.delete()
self?.setPasscodeLockCell()
let appDelegate = UIApplication.shared.delegate as! AppDelegate
appDelegate.passcodeLockPresenter = PasscodeLockPresenter(mainWindow: appDelegate.window)
}
self?.present(passcodeRemoveViewController, animated: true, completion: nil)
}