Skip to content

Commit f24c88e

Browse files
committed
Rename variable to msg
1 parent 619898f commit f24c88e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

app/src/main/kotlin/com/simplemobiletools/smsmessenger/messaging/MessagingUtils.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -171,7 +171,7 @@ class MessagingUtils(val context: Context) {
171171

172172
fun maybeShowErrorToast(resultCode: Int, errorCode: Int) {
173173
if (resultCode != Activity.RESULT_OK) {
174-
val msgId = if (errorCode != SendStatusReceiver.NO_ERROR_CODE) {
174+
val msg = if (errorCode != SendStatusReceiver.NO_ERROR_CODE) {
175175
context.getString(R.string.carrier_send_error)
176176
} else {
177177
when (resultCode) {
@@ -180,7 +180,7 @@ class MessagingUtils(val context: Context) {
180180
else -> context.getString(R.string.unknown_error_occurred_sending_message, resultCode)
181181
}
182182
}
183-
context.toast(msg = msgId, length = Toast.LENGTH_LONG)
183+
context.toast(msg = msg, length = Toast.LENGTH_LONG)
184184
} else {
185185
// no-op
186186
}

0 commit comments

Comments
 (0)