From cedc7732185e7517dea665e6a95fabfe549ab7f1 Mon Sep 17 00:00:00 2001 From: Andrei Vereha Date: Wed, 29 Dec 2021 16:32:18 +0100 Subject: [PATCH] translate NotConnectedException --- .../nightscout/androidaps/plugins/pump/omnipod/dash/util/I8n.kt | 2 ++ omnipod-dash/src/main/res/values/strings.xml | 1 + 2 files changed, 3 insertions(+) diff --git a/omnipod-dash/src/main/java/info/nightscout/androidaps/plugins/pump/omnipod/dash/util/I8n.kt b/omnipod-dash/src/main/java/info/nightscout/androidaps/plugins/pump/omnipod/dash/util/I8n.kt index b34fbf0b1a..744a426772 100644 --- a/omnipod-dash/src/main/java/info/nightscout/androidaps/plugins/pump/omnipod/dash/util/I8n.kt +++ b/omnipod-dash/src/main/java/info/nightscout/androidaps/plugins/pump/omnipod/dash/util/I8n.kt @@ -2,6 +2,7 @@ package info.nightscout.androidaps.plugins.pump.omnipod.dash.util import info.nightscout.androidaps.plugins.pump.omnipod.dash.R import info.nightscout.androidaps.plugins.pump.omnipod.dash.driver.comm.exceptions.FailedToConnectException +import info.nightscout.androidaps.plugins.pump.omnipod.dash.driver.comm.exceptions.NotConnectedException import info.nightscout.androidaps.plugins.pump.omnipod.dash.driver.comm.exceptions.ScanException import info.nightscout.androidaps.plugins.pump.omnipod.dash.driver.comm.exceptions.ScanFailFoundTooManyException import info.nightscout.androidaps.utils.resources.ResourceHelper @@ -13,6 +14,7 @@ class I8n { is FailedToConnectException -> rs.gs(R.string.omnipod_dash_failed_to_connect) is ScanFailFoundTooManyException -> rs.gs(R.string.omnipod_dash_found_too_many_pods) is ScanException -> rs.gs(R.string.omnipod_dash_scan_failed) + is NotConnectedException -> rs.gs(R.string.omnipod_dash_connection_lost) else -> rs.gs(R.string.omnipod_dash_generic_error, exception.toString()) } diff --git a/omnipod-dash/src/main/res/values/strings.xml b/omnipod-dash/src/main/res/values/strings.xml index f16cd9b2de..e016b351b6 100644 --- a/omnipod-dash/src/main/res/values/strings.xml +++ b/omnipod-dash/src/main/res/values/strings.xml @@ -48,4 +48,5 @@ %1$.2f U Delivering %1$.2f U Insulin delivery is suspended + Lost connection to pod