From 4733a4e3ad0a6bd24780ca0757f56de79501522a Mon Sep 17 00:00:00 2001 From: dankito Date: Sun, 20 Dec 2020 21:48:04 +0100 Subject: [PATCH] Implemented enabling send message log buttons only if there is already a message log --- .../dankito/banking/ui/android/dialogs/SendMessageLogDialog.kt | 3 +++ 1 file changed, 3 insertions(+) diff --git a/ui/BankingAndroidApp/src/main/java/net/dankito/banking/ui/android/dialogs/SendMessageLogDialog.kt b/ui/BankingAndroidApp/src/main/java/net/dankito/banking/ui/android/dialogs/SendMessageLogDialog.kt index a74a8e5c..7d3fecfb 100644 --- a/ui/BankingAndroidApp/src/main/java/net/dankito/banking/ui/android/dialogs/SendMessageLogDialog.kt +++ b/ui/BankingAndroidApp/src/main/java/net/dankito/banking/ui/android/dialogs/SendMessageLogDialog.kt @@ -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))