Fixed issue where error message dialogs were only flashed on the screen.

This commit is contained in:
Maurice Parker
2019-04-17 08:54:39 -05:00
parent 31ba612a95
commit 50822700c0
2 changed files with 14 additions and 11 deletions

View File

@@ -17,6 +17,7 @@ protocol AddContainerViewControllerChild: UIViewController {
protocol AddContainerViewControllerChildDelegate: UIViewController {
func readyToAdd(state: Bool)
func processingDidBegin()
func processingDidCancel()
func processingDidEnd()
}
@@ -76,11 +77,14 @@ extension AddContainerViewController: AddContainerViewControllerChildDelegate {
activityIndicatorView.startAnimating()
}
func processingDidEnd() {
func processingDidCancel() {
addButton.isEnabled = true
typeSelectorSegmentedControl.isEnabled = true
activityIndicatorView.isHidden = true
activityIndicatorView.stopAnimating()
}
func processingDidEnd() {
dismiss(animated: true)
}