Add check for empty editText
This commit is contained in:
parent
6cd6f12299
commit
f1518557c0
1 changed files with 1 additions and 1 deletions
|
@ -319,7 +319,7 @@ class LoginDialogFragment : BaseDialogFragment() {
|
||||||
layout.visibility = View.VISIBLE
|
layout.visibility = View.VISIBLE
|
||||||
val editText: ExtendedEditText? = layout.findViewById(t.editorId)
|
val editText: ExtendedEditText? = layout.findViewById(t.editorId)
|
||||||
if (editText != null && !showWelcomeDialog) {
|
if (editText != null && !showWelcomeDialog) {
|
||||||
if (loginDialogActiveType == LoginDialogType.ENTER_PHONE_NUMBER) {
|
if (loginDialogActiveType == LoginDialogType.ENTER_PHONE_NUMBER && editText.text.isEmpty()) {
|
||||||
editText.setText(countryPhoneCode)
|
editText.setText(countryPhoneCode)
|
||||||
}
|
}
|
||||||
editText.setOnEditorActionListener { _, actionId, _ ->
|
editText.setOnEditorActionListener { _, actionId, _ ->
|
||||||
|
|
Loading…
Reference in a new issue