From f24c88eac777ba59fe865e4f19a103259bb46efb Mon Sep 17 00:00:00 2001 From: Naveen Date: Tue, 10 Jan 2023 17:32:38 +0530 Subject: [PATCH] Rename variable to `msg` --- .../smsmessenger/messaging/MessagingUtils.kt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/src/main/kotlin/com/simplemobiletools/smsmessenger/messaging/MessagingUtils.kt b/app/src/main/kotlin/com/simplemobiletools/smsmessenger/messaging/MessagingUtils.kt index 3880ff25..cc52bf2c 100644 --- a/app/src/main/kotlin/com/simplemobiletools/smsmessenger/messaging/MessagingUtils.kt +++ b/app/src/main/kotlin/com/simplemobiletools/smsmessenger/messaging/MessagingUtils.kt @@ -171,7 +171,7 @@ class MessagingUtils(val context: Context) { fun maybeShowErrorToast(resultCode: Int, errorCode: Int) { if (resultCode != Activity.RESULT_OK) { - val msgId = if (errorCode != SendStatusReceiver.NO_ERROR_CODE) { + val msg = if (errorCode != SendStatusReceiver.NO_ERROR_CODE) { context.getString(R.string.carrier_send_error) } else { when (resultCode) { @@ -180,7 +180,7 @@ class MessagingUtils(val context: Context) { else -> context.getString(R.string.unknown_error_occurred_sending_message, resultCode) } } - context.toast(msg = msgId, length = Toast.LENGTH_LONG) + context.toast(msg = msg, length = Toast.LENGTH_LONG) } else { // no-op }