We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 98cdb50 commit 16f5d13Copy full SHA for 16f5d13
app/src/main/java/com/infomaniak/mail/ui/newMessage/InsertLinkDialog.kt
@@ -55,12 +55,17 @@ class InsertLinkDialog @Inject constructor(
55
.also {
56
it.setOnShowListener { dialog ->
57
displayNameEditText.showKeyboard()
58
- urlLayout.setError(null)
+ resetDialogState()
59
setConfirmButtonListener(dialog)
60
}
61
62
63
64
+ private fun resetDialogState() {
65
+ binding.urlLayout.setError(null)
66
+ hidePlaceholder()
67
+ }
68
+
69
private fun setConfirmButtonListener(dialog: DialogInterface) = with(binding) {
70
(dialog as AlertDialog).getButton(AlertDialog.BUTTON_POSITIVE).setOnClickListener {
71
val url = addMissingHttpsProtocol(urlEditText.trimmedText)
0 commit comments