Remove all braces from when statement
This commit is contained in:
parent
b61782bc7b
commit
619898fae9
1 changed files with 1 additions and 3 deletions
|
|
@ -177,9 +177,7 @@ class MessagingUtils(val context: Context) {
|
||||||
when (resultCode) {
|
when (resultCode) {
|
||||||
SmsManager.RESULT_ERROR_NO_SERVICE -> context.getString(R.string.error_service_is_unavailable)
|
SmsManager.RESULT_ERROR_NO_SERVICE -> context.getString(R.string.error_service_is_unavailable)
|
||||||
SmsManager.RESULT_ERROR_RADIO_OFF -> context.getString(R.string.error_radio_turned_off)
|
SmsManager.RESULT_ERROR_RADIO_OFF -> context.getString(R.string.error_radio_turned_off)
|
||||||
else -> {
|
else -> context.getString(R.string.unknown_error_occurred_sending_message, resultCode)
|
||||||
context.getString(R.string.unknown_error_occurred_sending_message, resultCode)
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
context.toast(msg = msgId, length = Toast.LENGTH_LONG)
|
context.toast(msg = msgId, length = Toast.LENGTH_LONG)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue