Implemented enabling send message log buttons only if there is already a message log

This commit is contained in:
dankito 2020-12-20 21:48:04 +01:00
parent 7170856f7e
commit 4733a4e3ad
1 changed files with 3 additions and 0 deletions

View File

@ -68,6 +68,9 @@ open class SendMessageLogDialog : DialogFragment() {
if (messageLog.isBlank()) {
rootView.txtvwInfoNoMessageLogEntriesYet.show()
rootView.lytMessageLog.hide()
rootView.btnSendMessageLogDirectly.isEnabled = false
rootView.btnSendMessageLogViaEMail.isEnabled = false
}
else {
rootView.edtxtMessageLog.setText(context?.getString(R.string.dialog_send_message_courteously_add_error_description, messageLog))