format
This commit is contained in:
parent
6b441b515e
commit
8767065fda
2 changed files with 4 additions and 4 deletions
|
@ -177,7 +177,7 @@ class MessageIO(
|
||||||
}
|
}
|
||||||
|
|
||||||
BleCommandSuccess -> {
|
BleCommandSuccess -> {
|
||||||
if (index == packets.size-1)
|
if (index == packets.size - 1)
|
||||||
MessageSendSuccess
|
MessageSendSuccess
|
||||||
else
|
else
|
||||||
MessageSendErrorSending("Received SUCCESS before sending all the data. $index")
|
MessageSendErrorSending("Received SUCCESS before sending all the data. $index")
|
||||||
|
|
|
@ -10,9 +10,9 @@ class I8n {
|
||||||
companion object {
|
companion object {
|
||||||
fun textFromException(exception: Throwable, rs: ResourceHelper): String {
|
fun textFromException(exception: Throwable, rs: ResourceHelper): String {
|
||||||
return when (exception) {
|
return when (exception) {
|
||||||
is FailedToConnectException -> rs.gs(R.string.omnipod_dash_failed_to_connect)
|
is FailedToConnectException -> rs.gs(R.string.omnipod_dash_failed_to_connect)
|
||||||
is ScanFailFoundTooManyException -> rs.gs(R.string.omnipod_dash_found_too_many_pods)
|
is ScanFailFoundTooManyException -> rs.gs(R.string.omnipod_dash_found_too_many_pods)
|
||||||
is ScanException -> rs.gs(R.string.omnipod_dash_scan_failed)
|
is ScanException -> rs.gs(R.string.omnipod_dash_scan_failed)
|
||||||
else ->
|
else ->
|
||||||
rs.gs(R.string.omnipod_dash_generic_error, exception.toString())
|
rs.gs(R.string.omnipod_dash_generic_error, exception.toString())
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue