Эх сурвалжийг харах

set no textContentType for email field in new contact (suggests the own email address)

Jonas Reinsch 7 жил өмнө
parent
commit
338295f9fe

+ 1 - 2
deltachat-ios/CredentialsController.swift

@@ -49,8 +49,6 @@ class TextFieldCell:UITableViewCell {
     static func makeEmailCell() -> TextFieldCell {
         let emailCell = TextFieldCell(description: "Email", placeholder: "you@example.com")
         
-        // this suggests the own email
-        emailCell.textField.textContentType = UITextContentType.emailAddress
         emailCell.textField.keyboardType = .emailAddress
         // switch off quicktype
         emailCell.textField.autocorrectionType = .no
@@ -114,6 +112,7 @@ class CredentialsController: UITableViewController {
         emailCell.textField.addTarget(self, action: #selector(CredentialsController.emailTextChanged), for: UIControlEvents.editingChanged)
         passwordCell.textField.addTarget(self, action: #selector(CredentialsController.passwordTextChanged), for: UIControlEvents.editingChanged)
         
+        emailCell.textField.textContentType = UITextContentType.emailAddress
         emailCell.textField.delegate = self
         passwordCell.textField.delegate = self
         emailCell.textField.returnKeyType = .next