Flag E-Mail-Inputs fields.

This commit is contained in:
B. Petersen
2016-11-18 22:31:39 +01:00
parent 8fa6424f65
commit 00ed215b39
2 changed files with 2 additions and 1 deletions
@@ -238,7 +238,7 @@ public class ContactAddActivity extends BaseFragment implements NotificationCent
emailTextView.setTextColor(0xff212121);
emailTextView.setMaxLines(4);
emailTextView.setGravity(LocaleController.isRTL ? Gravity.RIGHT : Gravity.LEFT);
emailTextView.setInputType(InputType.TYPE_TEXT_FLAG_CAP_SENTENCES);
emailTextView.setInputType(InputType.TYPE_CLASS_TEXT | InputType.TYPE_TEXT_FLAG_NO_SUGGESTIONS | InputType.TYPE_TEXT_VARIATION_EMAIL_ADDRESS);
emailTextView.setImeOptions(EditorInfo.IME_FLAG_NO_EXTRACT_UI);
emailTextView.setPadding(0, 0, 0, AndroidUtilities.dp(8));
emailTextView.setHint(LocaleController.getString("EmailAddress", R.string.EmailAddress));
@@ -338,6 +338,7 @@ public class MrAccountSettingsActivity extends BaseFragment {
addrCell = new MrEditTextCell(mContext);
addrCell.setValueHintAndLabel(MrMailbox.MrMailboxGetConfig(MrMailbox.hMailbox, "addr", ""),
"", LocaleController.getString("MyEmailAddress", R.string.MyEmailAddress), false);
addrCell.getEditTextView().setInputType(InputType.TYPE_CLASS_TEXT | InputType.TYPE_TEXT_FLAG_NO_SUGGESTIONS | InputType.TYPE_TEXT_VARIATION_EMAIL_ADDRESS);
}
view = addrCell;
}