Add check for empty editText

This commit is contained in:
Chumva 2019-02-14 12:53:47 +02:00
parent 6cd6f12299
commit f1518557c0

View file

@ -319,7 +319,7 @@ class LoginDialogFragment : BaseDialogFragment() {
layout.visibility = View.VISIBLE
val editText: ExtendedEditText? = layout.findViewById(t.editorId)
if (editText != null && !showWelcomeDialog) {
if (loginDialogActiveType == LoginDialogType.ENTER_PHONE_NUMBER) {
if (loginDialogActiveType == LoginDialogType.ENTER_PHONE_NUMBER && editText.text.isEmpty()) {
editText.setText(countryPhoneCode)
}
editText.setOnEditorActionListener { _, actionId, _ ->