Remove indicator label during decrypting password since decryption become really fast
This commit is contained in:
parent
1f829fffcc
commit
035da94ad9
1 changed files with 0 additions and 13 deletions
|
|
@ -20,17 +20,6 @@ class PasswordDetailTableViewController: UITableViewController, UIGestureRecogni
|
||||||
var shouldPopCurrentView = false
|
var shouldPopCurrentView = false
|
||||||
let passwordStore = PasswordStore.shared
|
let passwordStore = PasswordStore.shared
|
||||||
|
|
||||||
let indicatorLable: UILabel = {
|
|
||||||
let label = UILabel(frame: CGRect(x: 0, y: 0, width: UIScreen.main.bounds.width, height: 21))
|
|
||||||
label.center = CGPoint(x: UIScreen.main.bounds.width / 2, y: UIScreen.main.bounds.height * 0.382 + 22)
|
|
||||||
label.backgroundColor = UIColor.clear
|
|
||||||
label.textColor = UIColor.gray
|
|
||||||
label.text = "decrypting password"
|
|
||||||
label.textAlignment = .center
|
|
||||||
label.font = UIFont.preferredFont(forTextStyle: .footnote)
|
|
||||||
return label
|
|
||||||
}()
|
|
||||||
|
|
||||||
let indicator: UIActivityIndicatorView = {
|
let indicator: UIActivityIndicatorView = {
|
||||||
let indicator = UIActivityIndicatorView(activityIndicatorStyle: .gray)
|
let indicator = UIActivityIndicatorView(activityIndicatorStyle: .gray)
|
||||||
indicator.center = CGPoint(x: UIScreen.main.bounds.width / 2, y: UIScreen.main.bounds.height * 0.382)
|
indicator.center = CGPoint(x: UIScreen.main.bounds.width / 2, y: UIScreen.main.bounds.height * 0.382)
|
||||||
|
|
@ -82,7 +71,6 @@ class PasswordDetailTableViewController: UITableViewController, UIGestureRecogni
|
||||||
|
|
||||||
indicator.startAnimating()
|
indicator.startAnimating()
|
||||||
tableView.addSubview(indicator)
|
tableView.addSubview(indicator)
|
||||||
tableView.addSubview(indicatorLable)
|
|
||||||
editUIBarButtonItem.isEnabled = false
|
editUIBarButtonItem.isEnabled = false
|
||||||
navigationItem.rightBarButtonItem = editUIBarButtonItem
|
navigationItem.rightBarButtonItem = editUIBarButtonItem
|
||||||
|
|
||||||
|
|
@ -142,7 +130,6 @@ class PasswordDetailTableViewController: UITableViewController, UIGestureRecogni
|
||||||
setTableData()
|
setTableData()
|
||||||
self.tableView.reloadData()
|
self.tableView.reloadData()
|
||||||
indicator.stopAnimating()
|
indicator.stopAnimating()
|
||||||
indicatorLable.isHidden = true
|
|
||||||
editUIBarButtonItem.isEnabled = true
|
editUIBarButtonItem.isEnabled = true
|
||||||
if let urlString = password.getURLString() {
|
if let urlString = password.getURLString() {
|
||||||
if self.passwordEntity?.image == nil{
|
if self.passwordEntity?.image == nil{
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue