From 035da94ad92ede601d91645e5cd80ed0241800a0 Mon Sep 17 00:00:00 2001 From: Bob Sun Date: Fri, 17 Mar 2017 10:25:10 -0700 Subject: [PATCH] Remove indicator label during decrypting password since decryption become really fast --- .../PasswordDetailTableViewController.swift | 13 ------------- 1 file changed, 13 deletions(-) diff --git a/pass/Controllers/PasswordDetailTableViewController.swift b/pass/Controllers/PasswordDetailTableViewController.swift index 0ba0770..ba3f278 100644 --- a/pass/Controllers/PasswordDetailTableViewController.swift +++ b/pass/Controllers/PasswordDetailTableViewController.swift @@ -20,17 +20,6 @@ class PasswordDetailTableViewController: UITableViewController, UIGestureRecogni var shouldPopCurrentView = false 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(activityIndicatorStyle: .gray) 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() tableView.addSubview(indicator) - tableView.addSubview(indicatorLable) editUIBarButtonItem.isEnabled = false navigationItem.rightBarButtonItem = editUIBarButtonItem @@ -142,7 +130,6 @@ class PasswordDetailTableViewController: UITableViewController, UIGestureRecogni setTableData() self.tableView.reloadData() indicator.stopAnimating() - indicatorLable.isHidden = true editUIBarButtonItem.isEnabled = true if let urlString = password.getURLString() { if self.passwordEntity?.image == nil{