Skip to content

Commit b61782b

Browse files
committed
Avoid oneliner
1 parent ed11a99 commit b61782b

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

app/src/main/kotlin/com/simplemobiletools/smsmessenger/receivers/MmsSentReceiver.kt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,8 @@ class MmsSentReceiver : SendStatusReceiver() {
2222
val messageBox = if (receiverResultCode == Activity.RESULT_OK) {
2323
Telephony.Mms.MESSAGE_BOX_SENT
2424
} else {
25-
context.toast(msg = context.getString(R.string.unknown_error_occurred_sending_message, receiverResultCode), length = Toast.LENGTH_LONG)
25+
val msg = context.getString(R.string.unknown_error_occurred_sending_message, receiverResultCode)
26+
context.toast(msg = msg, length = Toast.LENGTH_LONG)
2627
Telephony.Mms.MESSAGE_BOX_FAILED
2728
}
2829
val values = ContentValues(1).apply {

0 commit comments

Comments
 (0)