Rename variable to `msg`
This commit is contained in:
parent
619898fae9
commit
f24c88eac7
|
@ -171,7 +171,7 @@ class MessagingUtils(val context: Context) {
|
||||||
|
|
||||||
fun maybeShowErrorToast(resultCode: Int, errorCode: Int) {
|
fun maybeShowErrorToast(resultCode: Int, errorCode: Int) {
|
||||||
if (resultCode != Activity.RESULT_OK) {
|
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)
|
context.getString(R.string.carrier_send_error)
|
||||||
} else {
|
} else {
|
||||||
when (resultCode) {
|
when (resultCode) {
|
||||||
|
@ -180,7 +180,7 @@ class MessagingUtils(val context: Context) {
|
||||||
else -> context.getString(R.string.unknown_error_occurred_sending_message, resultCode)
|
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 {
|
} else {
|
||||||
// no-op
|
// no-op
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue