mirror of
https://github.com/keymanapp/keyman.git
synced 2026-08-14 04:39:23 +00:00
change(ios): A bit more tidy-up
This commit is contained in:
parent
939593e51c
commit
8ab9861969
2 changed files with 4 additions and 12 deletions
|
|
@ -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)
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue