Already show password list in background before dismissing lock view (#497)

Currently it's like:

  1) Lock view is presented
  2) Authenticate
  3) Lock view disappears
  4) Browser is shown briefly
  5) Extension shows password list

This change skips step 4.
This commit is contained in:
Danny Mösch 2021-08-29 23:54:56 +02:00 committed by GitHub
parent 67cca0f31d
commit ab8eaaf97c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -136,24 +136,24 @@ open class PasscodeLockViewController: UIViewController, UITextFieldDelegate {
} }
} }
internal func dismissPasscodeLock(completionHandler: (() -> Void)? = nil) { private func dismissPasscodeLock(completionHandler: (() -> Void)? = nil) {
// clean up the textfield // clean up the textfield
DispatchQueue.main.async { DispatchQueue.main.async {
self.passcodeTextField?.text = "" self.passcodeTextField?.text = ""
} }
completionHandler?()
// pop // pop
if presentingViewController?.presentedViewController == self { if presentingViewController?.presentedViewController == self {
// if presented as modal // if presented as modal
dismiss(animated: true) { [weak self] in dismiss(animated: true) { [weak self] in
self?.dismissCompletionCallback?() self?.dismissCompletionCallback?()
completionHandler?()
} }
} else { } else {
// if pushed in a navigation controller // if pushed in a navigation controller
_ = navigationController?.popViewController(animated: true) _ = navigationController?.popViewController(animated: true)
dismissCompletionCallback?() dismissCompletionCallback?()
completionHandler?()
} }
} }