Avoid oneliner

This commit is contained in:
Naveen 2023-01-10 17:24:56 +05:30
parent ed11a99e59
commit b61782bc7b
1 changed files with 2 additions and 1 deletions

View File

@ -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 {