From b61782bc7b8c6772b7734c799333e9464f7ebdc7 Mon Sep 17 00:00:00 2001 From: Naveen Date: Tue, 10 Jan 2023 17:24:56 +0530 Subject: [PATCH] Avoid oneliner --- .../smsmessenger/receivers/MmsSentReceiver.kt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/src/main/kotlin/com/simplemobiletools/smsmessenger/receivers/MmsSentReceiver.kt b/app/src/main/kotlin/com/simplemobiletools/smsmessenger/receivers/MmsSentReceiver.kt index 143fe56e..d9ea5b18 100644 --- a/app/src/main/kotlin/com/simplemobiletools/smsmessenger/receivers/MmsSentReceiver.kt +++ b/app/src/main/kotlin/com/simplemobiletools/smsmessenger/receivers/MmsSentReceiver.kt @@ -22,7 +22,8 @@ class MmsSentReceiver : SendStatusReceiver() { val messageBox = if (receiverResultCode == Activity.RESULT_OK) { Telephony.Mms.MESSAGE_BOX_SENT } else { - context.toast(msg = context.getString(R.string.unknown_error_occurred_sending_message, receiverResultCode), length = Toast.LENGTH_LONG) + val msg = context.getString(R.string.unknown_error_occurred_sending_message, receiverResultCode) + context.toast(msg = msg, length = Toast.LENGTH_LONG) Telephony.Mms.MESSAGE_BOX_FAILED } val values = ContentValues(1).apply {