From adceb5d4d210860c0792c68fe6c8cb0c517f7d25 Mon Sep 17 00:00:00 2001 From: dankito Date: Sat, 16 May 2020 23:42:04 +0200 Subject: [PATCH] Renamed sendMailAction to sendMailActivity --- .../android/ui/dialogs/SendMessageLogDialog.kt | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/ui/BankingAndroidApp/src/main/java/net/dankito/banking/fints4java/android/ui/dialogs/SendMessageLogDialog.kt b/ui/BankingAndroidApp/src/main/java/net/dankito/banking/fints4java/android/ui/dialogs/SendMessageLogDialog.kt index f4f0717a..e99b9178 100644 --- a/ui/BankingAndroidApp/src/main/java/net/dankito/banking/fints4java/android/ui/dialogs/SendMessageLogDialog.kt +++ b/ui/BankingAndroidApp/src/main/java/net/dankito/banking/fints4java/android/ui/dialogs/SendMessageLogDialog.kt @@ -67,14 +67,14 @@ open class SendMessageLogDialog : DialogFragment() { } protected open fun sendMessageLog(messageLog: String) { - val sendMailAction = Intent(Intent.ACTION_SEND) - sendMailAction.type = "message/rfc822" - sendMailAction.putExtra(Intent.EXTRA_EMAIL, arrayOf("panta.rhei@dankito.net")) - sendMailAction.putExtra(Intent.EXTRA_SUBJECT, context?.getString(R.string.dialog_send_message_log_mail_subject)) - sendMailAction.putExtra(Intent.EXTRA_TEXT, messageLog) + val sendMailActivity = Intent(Intent.ACTION_SEND) + sendMailActivity.type = "message/rfc822" + sendMailActivity.putExtra(Intent.EXTRA_EMAIL, arrayOf("panta.rhei@dankito.net")) + sendMailActivity.putExtra(Intent.EXTRA_SUBJECT, context?.getString(R.string.dialog_send_message_log_mail_subject)) + sendMailActivity.putExtra(Intent.EXTRA_TEXT, messageLog) try { - startActivity(Intent.createChooser(sendMailAction, context?.getString(R.string.dialog_send_message_log_action_send_chooser_title))) + startActivity(Intent.createChooser(sendMailActivity, context?.getString(R.string.dialog_send_message_log_action_send_chooser_title))) Toast.makeText(context, context?.getString(R.string.dialog_send_message_log_thanks_for_helping_making_app_better), Toast.LENGTH_LONG).show()