Skip to content

Commit

Permalink
Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
fanyu committed Sep 28, 2021
1 parent 634dde8 commit 82b5a83
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@ class KeyboardBasedLayoutViewController: UIViewController {
layout(for: frame)
} else {
UIView.performWithoutAnimation {
view.layoutIfNeeded()
layout(for: frame)
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -241,10 +241,8 @@ class TransferOutViewController: KeyboardBasedLayoutViewController {
checkPay()
}
window.cancelHandler = {
DispatchQueue.main.async {
self.continueButton.isBusy = false
self.amountTextField.becomeFirstResponder()
}
self.continueButton.isBusy = false
self.amountTextField.becomeFirstResponder()
}
window.presentPopupControllerAnimated()
} else {
Expand Down
4 changes: 2 additions & 2 deletions Mixin/UserInterface/Windows/StrangerTransferHintWindow.swift
Original file line number Diff line number Diff line change
Expand Up @@ -31,14 +31,14 @@ final class StrangerTransferHintWindow: BottomSheetView {

@IBAction func continueAction(_ sender: Any) {
canDismiss = true
dismissPopupControllerAnimated()
continueHandler?()
dismissPopupControllerAnimated()
}

@IBAction func cancelAction(_ sender: Any) {
canDismiss = true
dismissPopupControllerAnimated()
cancelHandler?()
dismissPopupControllerAnimated()
}

}

0 comments on commit 82b5a83

Please sign in to comment.