Browse Source

Merge pull request #826 from deltachat/fix_account_setup_credentials_ui

fix disappearing email and password strings during account setup
nayooti 5 years ago
parent
commit
34454b5756
1 changed files with 2 additions and 8 deletions
  1. 2 8
      deltachat-ios/Controller/AccountSetupController.swift

+ 2 - 8
deltachat-ios/Controller/AccountSetupController.swift

@@ -349,14 +349,14 @@ class AccountSetupController: UITableViewController, ProgressAlertHandler {
             title = String.localized("login_header")
             title = String.localized("login_header")
         }
         }
         navigationItem.rightBarButtonItem = loginButton
         navigationItem.rightBarButtonItem = loginButton
+        emailCell.setText(text: dcContext.addr ?? nil)
+        passwordCell.setText(text: dcContext.mailPw ?? nil)
     }
     }
 
 
     override func viewWillAppear(_ animated: Bool) {
     override func viewWillAppear(_ animated: Bool) {
         super.viewWillAppear(animated)
         super.viewWillAppear(animated)
         initSelectionCells()
         initSelectionCells()
-        updateCellData()
         handleLoginButton()
         handleLoginButton()
-
     }
     }
 
 
     override func viewDidAppear(_ animated: Bool) {
     override func viewDidAppear(_ animated: Bool) {
@@ -487,12 +487,6 @@ class AccountSetupController: UITableViewController, ProgressAlertHandler {
         }
         }
     }
     }
 
 
-    // MARK: - updates
-    private func updateCellData() {
-        emailCell.setText(text: dcContext.addr ?? nil)
-        passwordCell.setText(text: dcContext.mailPw ?? nil)
-    }
-
     // MARK: - actions
     // MARK: - actions
     private func toggleAdvancedSection() {
     private func toggleAdvancedSection() {
         let willShow = !advancedSectionShowing
         let willShow = !advancedSectionShowing