Move passcode lock to framework

This commit is contained in:
Yishi Lin 2017-06-14 14:16:26 +08:00
parent 639cd123cb
commit 7cf628638b
5 changed files with 34 additions and 42 deletions

View file

@ -169,7 +169,7 @@ class SettingsTableViewController: UITableViewController {
}
private func setPasscodeLockTouchIDCells() {
if PasscodeLockRepository().hasPasscode {
if PasscodeLockConfiguration.shared.repository.hasPasscode {
self.passcodeTableViewCell.detailTextLabel?.text = "On"
passcodeLockConfig.isTouchIDAllowed = true
touchIDSwitch.isOn = SharedDefaults[.isTouchIDOn]