change(ios): A bit more tidy-up

This commit is contained in:
jahorton 2020-01-27 11:54:09 +07:00
parent 939593e51c
commit 8ab9861969
2 changed files with 4 additions and 12 deletions

View file

@ -7,7 +7,6 @@
//
import UIKit
import Reachability
private let toolbarButtonTag = 100
private let toolbarLabelTag = 101
@ -196,10 +195,6 @@ class LanguageDetailViewController: UITableViewController, UIAlertViewDelegate {
Alerts.showConnectionErrorAlert(in: self, handler: Alerts.popToNevigationRootHandler(for: self))
}
private func showDownloadErrorAlert() {
Alerts.showDownloadErrorAlert(in: self, handler: Alerts.popToNevigationRootHandler(for: self))
}
private func keyboardDownloadStarted() {
log.info("keyboardDownloadStarted: LanguageDetailViewController")
view.isUserInteractionEnabled = false
@ -208,7 +203,8 @@ class LanguageDetailViewController: UITableViewController, UIAlertViewDelegate {
private func keyboardDownloadFailed() {
log.info("keyboardDownloadFailed: LanguageDetailViewController")
showDownloadErrorAlert()
Alerts.showDownloadErrorAlert(in: self, handler: Alerts.popToNevigationRootHandler(for: self))
view.isUserInteractionEnabled = true
navigationItem.setHidesBackButton(false, animated: true)
}

View file

@ -7,7 +7,6 @@
//
import QuartzCore
import UIKit
import Reachability
private let activityViewTag = -2
private let toolbarButtonTag = 100
@ -246,7 +245,8 @@ class LanguageViewController: UITableViewController, UIAlertViewDelegate {
}
private func keyboardDownloadFailed() {
showDownloadErrorAlert()
Alerts.showDownloadErrorAlert(in: self, handler: Alerts.popToNevigationRootHandler(for: self))
view.isUserInteractionEnabled = true
navigationItem.setHidesBackButton(false, animated: true)
}
@ -308,10 +308,6 @@ class LanguageViewController: UITableViewController, UIAlertViewDelegate {
private func showConnectionErrorAlert() {
Alerts.showConnectionErrorAlert(in: self, handler: Alerts.popToNevigationRootHandler(for: self))
}
private func showDownloadErrorAlert() {
Alerts.showDownloadErrorAlert(in: self, handler: Alerts.popToNevigationRootHandler(for: self))
}
}
// MARK: - KeyboardRepositoryDelegate