diff --git a/app/src/main/java/info/nightscout/androidaps/setupwizard/SWDefinition.kt b/app/src/main/java/info/nightscout/androidaps/setupwizard/SWDefinition.kt
index 76e5057654..1d7c37929f 100644
--- a/app/src/main/java/info/nightscout/androidaps/setupwizard/SWDefinition.kt
+++ b/app/src/main/java/info/nightscout/androidaps/setupwizard/SWDefinition.kt
@@ -31,7 +31,6 @@ import info.nightscout.androidaps.plugins.profile.local.LocalProfilePlugin
import info.nightscout.androidaps.plugins.profile.ns.NSProfileFragment
import info.nightscout.androidaps.plugins.profile.ns.NSProfilePlugin
import info.nightscout.androidaps.plugins.pump.omnipod.OmnipodPumpPlugin
-import info.nightscout.androidaps.plugins.pump.omnipod.ui.wizard.ChangePodWizardActivity
import info.nightscout.androidaps.setupwizard.elements.*
import info.nightscout.androidaps.setupwizard.events.EventSWUpdate
import info.nightscout.androidaps.utils.AndroidPermission
@@ -317,43 +316,35 @@ class SWDefinition @Inject constructor(
.visibility(SWValidator { (activePlugin.activePump as PluginBase).preferencesId > 0 }))
.add(SWInfotext(injector)
.label(R.string.setupwizard_pump_pump_not_initialized)
- .visibility(SWValidator { !activePlugin.activePump.isInitialized }))
- // BEGIN OMNIPOD
- .add(SWInfotext(injector)
- .label(R.string.setupwizard_pump_waiting_for_riley_link_connection)
- .visibility(SWValidator {
- val activePump = activePlugin.activePump
- activePump is OmnipodPumpPlugin && !activePump.isRileyLinkReady
- }))
- .add(SWInfotext(injector)
- .label(R.string.setupwizard_pump_waiting_for_pod_change)
- .visibility(SWValidator {
- val activePump = activePlugin.activePump
- activePump is OmnipodPumpPlugin && activePump.isRileyLinkReady && !activePump.isInitialized
- }))
- .add(SWButton(injector)
- .text(R.string.setupwizard_pump_omnipod_change_pod)
- .action(Runnable {
- protectionCheck.queryProtection(activity, ProtectionCheck.Protection.PREFERENCES, Runnable {
- val i = Intent(activity, ChangePodWizardActivity::class.java)
- activity.startActivity(i)
- }, null)
- })
- .visibility(SWValidator {
- val activePump = activePlugin.activePump
- activePump is OmnipodPumpPlugin && activePump.isRileyLinkReady && !activePump.isInitialized
- }))
- // END OMNIPOD
+ .visibility(SWValidator { !isPumpInitialized() }))
+ .add( // Omnipod only
+ SWInfotext(injector)
+ .label(R.string.setupwizard_pump_waiting_for_riley_link_connection)
+ .visibility(SWValidator {
+ val activePump = activePlugin.activePump
+ activePump is OmnipodPumpPlugin && !activePump.isRileyLinkReady
+ }))
.add(SWButton(injector)
.text(R.string.readstatus)
.action(Runnable { commandQueue.readStatus("Clicked connect to pump", null) })
- .visibility(SWValidator { activePlugin.activePump !is OmnipodPumpPlugin }))
+ .visibility(SWValidator {
+ // Hide for Omnipod, because as we don't require a Pod to be paired in the setup wizard,
+ // Getting the status might not be possible
+ activePlugin.activePump !is OmnipodPumpPlugin
+ }))
.add(SWEventListener(injector, EventPumpStatusChanged::class.java))
.validator(SWValidator {
- val activePump = activePlugin.activePump
- activePump.isInitialized
+ isPumpInitialized()
})
+ private fun isPumpInitialized(): Boolean {
+ val activePump = activePlugin.activePump
+
+ // For Omnipod, consider the pump initialized when a RL has been configured successfully
+ // Users will be prompted to activate a Pod after completing the setup wizard.
+ return activePump.isInitialized || (activePump is OmnipodPumpPlugin && activePump.isRileyLinkReady)
+ }
+
private val screenAps = SWScreen(injector, R.string.configbuilder_aps)
.skippable(false)
.add(SWInfotext(injector)
diff --git a/app/src/main/res/values/strings.xml b/app/src/main/res/values/strings.xml
index b76e703166..2b6e4788aa 100644
--- a/app/src/main/res/values/strings.xml
+++ b/app/src/main/res/values/strings.xml
@@ -950,9 +950,7 @@
Please select source of profile. If patient is a child you should use NS profile. If there is nobody following you on Nightscout you will probably prefer Local profile. Please remember that you are only selecting the profile source. To use it you must activate it by executing \"Profile switch\"Select one from availables algorithms. They are sorted from oldest to newest. Newer algorithm is usually more powerful and more aggressive. Thus if you are new looper you may probably start with AMA and not with latest one. Do not forget to read the OpenAPS documentation and configure it before use.Waiting for RileyLink connection…\n
- Waiting for Pod change…\nNote: You can continue setup once the pump has been initialized.\n
- Change PodStart your first objectivePermissionAsk for permission
diff --git a/omnipod/src/main/AndroidManifest.xml b/omnipod/src/main/AndroidManifest.xml
index 7da09f6d06..4c8d3b5305 100644
--- a/omnipod/src/main/AndroidManifest.xml
+++ b/omnipod/src/main/AndroidManifest.xml
@@ -9,6 +9,7 @@
-
+
+
\ No newline at end of file
diff --git a/omnipod/src/main/java/info/nightscout/androidaps/plugins/pump/omnipod/OmnipodPumpPlugin.java b/omnipod/src/main/java/info/nightscout/androidaps/plugins/pump/omnipod/OmnipodPumpPlugin.java
index 1201412345..6e1c85314b 100644
--- a/omnipod/src/main/java/info/nightscout/androidaps/plugins/pump/omnipod/OmnipodPumpPlugin.java
+++ b/omnipod/src/main/java/info/nightscout/androidaps/plugins/pump/omnipod/OmnipodPumpPlugin.java
@@ -319,12 +319,6 @@ public class OmnipodPumpPlugin extends PumpPluginBase implements PumpInterface,
return rileyLinkServiceData.rileyLinkServiceState.isReady();
}
- public boolean needsPodActivation() {
- // don't use PodStateManager.isActivationCompleted() because that returns false for PodProgressStatus.ACTIVATION_TIME_EXCEEDED
- // which indicates that the pod should be deactivated rather then activated
- return !podStateManager.isPodInitialized() || podStateManager.getPodProgressStatus().isBefore(PodProgressStatus.ABOVE_FIFTY_UNITS);
- }
-
private void updateAapsTbr() {
// As per the characteristics of the Omnipod, we only know whether or not a TBR is currently active
// But it doesn't tell us the duration or amount, so we can only update TBR status in AAPS if
diff --git a/omnipod/src/main/java/info/nightscout/androidaps/plugins/pump/omnipod/dagger/OmnipodModule.kt b/omnipod/src/main/java/info/nightscout/androidaps/plugins/pump/omnipod/dagger/OmnipodModule.kt
index a61a9425bf..fd2b49ae1c 100644
--- a/omnipod/src/main/java/info/nightscout/androidaps/plugins/pump/omnipod/dagger/OmnipodModule.kt
+++ b/omnipod/src/main/java/info/nightscout/androidaps/plugins/pump/omnipod/dagger/OmnipodModule.kt
@@ -9,7 +9,8 @@ import info.nightscout.androidaps.plugins.pump.omnipod.manager.AapsPodStateManag
import info.nightscout.androidaps.plugins.pump.omnipod.rileylink.manager.OmnipodRileyLinkCommunicationManager
import info.nightscout.androidaps.plugins.pump.omnipod.ui.PodHistoryActivity
import info.nightscout.androidaps.plugins.pump.omnipod.ui.PodManagementActivity
-import info.nightscout.androidaps.plugins.pump.omnipod.ui.wizard.ChangePodWizardActivity
+import info.nightscout.androidaps.plugins.pump.omnipod.ui.wizard.activation.PodActivationWizardActivity
+import info.nightscout.androidaps.plugins.pump.omnipod.ui.wizard.deactivation.PodDeactivationWizardActivity
@Module
@Suppress("unused")
@@ -22,7 +23,11 @@ abstract class OmnipodModule {
@ActivityScope
@ContributesAndroidInjector(modules = [OmnipodWizardModule::class])
- abstract fun contributesWizardActivity(): ChangePodWizardActivity
+ abstract fun contributesActivationWizardActivity(): PodActivationWizardActivity
+
+ @ActivityScope
+ @ContributesAndroidInjector(modules = [OmnipodWizardModule::class])
+ abstract fun contributesDeactivationWizardActivity(): PodDeactivationWizardActivity
// Service
@ContributesAndroidInjector
diff --git a/omnipod/src/main/java/info/nightscout/androidaps/plugins/pump/omnipod/dagger/OmnipodWizardModule.kt b/omnipod/src/main/java/info/nightscout/androidaps/plugins/pump/omnipod/dagger/OmnipodWizardModule.kt
index 3fe8250a58..4421900b15 100644
--- a/omnipod/src/main/java/info/nightscout/androidaps/plugins/pump/omnipod/dagger/OmnipodWizardModule.kt
+++ b/omnipod/src/main/java/info/nightscout/androidaps/plugins/pump/omnipod/dagger/OmnipodWizardModule.kt
@@ -7,13 +7,18 @@ import dagger.Module
import dagger.Provides
import dagger.android.ContributesAndroidInjector
import dagger.multibindings.IntoMap
-import info.nightscout.androidaps.plugins.pump.omnipod.ui.wizard.fragment.action.DeactivatePodActionFragment
-import info.nightscout.androidaps.plugins.pump.omnipod.ui.wizard.fragment.action.InsertCannulaActionFragment
-import info.nightscout.androidaps.plugins.pump.omnipod.ui.wizard.fragment.action.PairAndPrimePodActionFragment
-import info.nightscout.androidaps.plugins.pump.omnipod.ui.wizard.fragment.info.*
-import info.nightscout.androidaps.plugins.pump.omnipod.ui.wizard.viewmodel.DeactivatePodActionViewModel
-import info.nightscout.androidaps.plugins.pump.omnipod.ui.wizard.viewmodel.InsertCannulaActionViewModel
-import info.nightscout.androidaps.plugins.pump.omnipod.ui.wizard.viewmodel.PairAndPrimePodActionViewModel
+import info.nightscout.androidaps.plugins.pump.omnipod.ui.wizard.activation.fragment.AttachPodInfoFragment
+import info.nightscout.androidaps.plugins.pump.omnipod.ui.wizard.activation.fragment.FillPodInfoFragment
+import info.nightscout.androidaps.plugins.pump.omnipod.ui.wizard.activation.fragment.InitializePodActionFragment
+import info.nightscout.androidaps.plugins.pump.omnipod.ui.wizard.activation.fragment.InsertCannulaActionFragment
+import info.nightscout.androidaps.plugins.pump.omnipod.ui.wizard.activation.fragment.PodActivatedInfoFragment
+import info.nightscout.androidaps.plugins.pump.omnipod.ui.wizard.activation.viewmodel.InitializePodActionViewModel
+import info.nightscout.androidaps.plugins.pump.omnipod.ui.wizard.activation.viewmodel.InsertCannulaActionViewModel
+import info.nightscout.androidaps.plugins.pump.omnipod.ui.wizard.deactivation.fragment.DeactivatePodActionFragment
+import info.nightscout.androidaps.plugins.pump.omnipod.ui.wizard.deactivation.fragment.DeactivatePodInfoFragment
+import info.nightscout.androidaps.plugins.pump.omnipod.ui.wizard.deactivation.fragment.PodDeactivatedInfoFragment
+import info.nightscout.androidaps.plugins.pump.omnipod.ui.wizard.deactivation.fragment.PodDiscardedInfoFragment
+import info.nightscout.androidaps.plugins.pump.omnipod.ui.wizard.deactivation.viewmodel.DeactivatePodActionViewModel
import javax.inject.Provider
@Module
@@ -31,8 +36,8 @@ abstract class OmnipodWizardModule {
@Binds
@IntoMap
@OmnipodPluginQualifier
- @ViewModelKey(PairAndPrimePodActionViewModel::class)
- internal abstract fun pairAndPrimePodActionViewModel(viewModel: PairAndPrimePodActionViewModel): ViewModel
+ @ViewModelKey(InitializePodActionViewModel::class)
+ internal abstract fun initializePodActionViewModel(viewModel: InitializePodActionViewModel): ViewModel
@Binds
@IntoMap
@@ -57,7 +62,7 @@ abstract class OmnipodWizardModule {
@FragmentScope
@ContributesAndroidInjector
- internal abstract fun contributesPairAndPrimePodActionFragment(): PairAndPrimePodActionFragment
+ internal abstract fun contributesInitializePodActionFragment(): InitializePodActionFragment
@FragmentScope
@ContributesAndroidInjector
@@ -81,7 +86,7 @@ abstract class OmnipodWizardModule {
@FragmentScope
@ContributesAndroidInjector
- internal abstract fun contributesPodChangedInfoFragment(): PodChangedInfoFragment
+ internal abstract fun contributesPodActivatedInfoFragment(): PodActivatedInfoFragment
}
diff --git a/omnipod/src/main/java/info/nightscout/androidaps/plugins/pump/omnipod/definition/OmnipodCommandType.java b/omnipod/src/main/java/info/nightscout/androidaps/plugins/pump/omnipod/definition/OmnipodCommandType.java
index 4f196cda3d..8d9b250ac4 100644
--- a/omnipod/src/main/java/info/nightscout/androidaps/plugins/pump/omnipod/definition/OmnipodCommandType.java
+++ b/omnipod/src/main/java/info/nightscout/androidaps/plugins/pump/omnipod/definition/OmnipodCommandType.java
@@ -6,8 +6,8 @@ import info.nightscout.androidaps.plugins.pump.omnipod.R;
* Created by andy on 4.8.2019
*/
public enum OmnipodCommandType {
- ACTIVATE_POD(R.string.omnipod_cmd_activate_pod), // First step of Pod change
- INSERT_CANNULA(R.string.omnipod_cmd_insert_cannula), // Second step of Pod change
+ INITIALIZE_POD(R.string.omnipod_cmd_initialize_pod), // First step of Pod activation
+ INSERT_CANNULA(R.string.omnipod_cmd_insert_cannula), // Second step of Pod activation
DEACTIVATE_POD(R.string.omnipod_cmd_deactivate_pod), //
SET_BASAL_PROFILE(R.string.omnipod_cmd_set_basal_schedule), //
SET_BOLUS(R.string.omnipod_cmd_set_bolus), //
diff --git a/omnipod/src/main/java/info/nightscout/androidaps/plugins/pump/omnipod/definition/PodHistoryEntryType.java b/omnipod/src/main/java/info/nightscout/androidaps/plugins/pump/omnipod/definition/PodHistoryEntryType.java
index 207a7814fc..89560786e0 100644
--- a/omnipod/src/main/java/info/nightscout/androidaps/plugins/pump/omnipod/definition/PodHistoryEntryType.java
+++ b/omnipod/src/main/java/info/nightscout/androidaps/plugins/pump/omnipod/definition/PodHistoryEntryType.java
@@ -13,10 +13,10 @@ import info.nightscout.androidaps.plugins.pump.omnipod.R;
*/
public enum PodHistoryEntryType {
- ACTIVATE_POD(1, R.string.omnipod_cmd_activate_pod, PumpHistoryEntryGroup.Prime),
+ INITIALIZE_POD(1, R.string.omnipod_cmd_initialize_pod, PumpHistoryEntryGroup.Prime),
INSERT_CANNULA(2, R.string.omnipod_cmd_insert_cannula, PumpHistoryEntryGroup.Prime),
DEACTIVATE_POD(3, R.string.omnipod_cmd_deactivate_pod, PumpHistoryEntryGroup.Prime),
- DISCARD_POD_STATE(4, R.string.omnipod_cmd_discard_pod, PumpHistoryEntryGroup.Prime),
+ DISCARD_POD(4, R.string.omnipod_cmd_discard_pod, PumpHistoryEntryGroup.Prime),
SET_TEMPORARY_BASAL(10, R.string.omnipod_cmd_set_tbr, PumpHistoryEntryGroup.Basal),
CANCEL_TEMPORARY_BASAL_BY_DRIVER(11, R.string.omnipod_cmd_cancel_tbr_by_driver, PumpHistoryEntryGroup.Basal),
diff --git a/omnipod/src/main/java/info/nightscout/androidaps/plugins/pump/omnipod/manager/AapsOmnipodManager.java b/omnipod/src/main/java/info/nightscout/androidaps/plugins/pump/omnipod/manager/AapsOmnipodManager.java
index 3d21de9c14..cddf3b2692 100644
--- a/omnipod/src/main/java/info/nightscout/androidaps/plugins/pump/omnipod/manager/AapsOmnipodManager.java
+++ b/omnipod/src/main/java/info/nightscout/androidaps/plugins/pump/omnipod/manager/AapsOmnipodManager.java
@@ -153,7 +153,7 @@ public class AapsOmnipodManager {
timeChangeEventEnabled = sp.getBoolean(OmnipodStorageKeys.Preferences.TIME_CHANGE_EVENT_ENABLED, true);
}
- public PumpEnactResult activateNewPod() {
+ public PumpEnactResult initializePod() {
PumpEnactResult result = new PumpEnactResult(injector);
try {
Boolean res = executeCommand(delegate::pairAndPrime)
@@ -162,13 +162,13 @@ public class AapsOmnipodManager {
result.success(res).enacted(res);
if (!res) {
- result.comment(R.string.omnipod_error_failed_to_activate_pod);
+ result.comment(R.string.omnipod_error_failed_to_initialize_pod);
}
} catch (Exception ex) {
result.success(false).enacted(false).comment(translateException(ex));
}
- addToHistory(System.currentTimeMillis(), PodHistoryEntryType.ACTIVATE_POD, result.comment, result.success);
+ addToHistory(System.currentTimeMillis(), PodHistoryEntryType.INITIALIZE_POD, result.comment, result.success);
return result;
}
@@ -313,7 +313,7 @@ public class AapsOmnipodManager {
public PumpEnactResult discardPodState() {
podStateManager.discardState();
- addSuccessToHistory(System.currentTimeMillis(), PodHistoryEntryType.DISCARD_POD_STATE, null);
+ addSuccessToHistory(System.currentTimeMillis(), PodHistoryEntryType.DISCARD_POD, null);
createSuspendedFakeTbrIfNotExists();
diff --git a/omnipod/src/main/java/info/nightscout/androidaps/plugins/pump/omnipod/ui/PodHistoryActivity.java b/omnipod/src/main/java/info/nightscout/androidaps/plugins/pump/omnipod/ui/PodHistoryActivity.java
index ad81185d5c..ff8319a557 100644
--- a/omnipod/src/main/java/info/nightscout/androidaps/plugins/pump/omnipod/ui/PodHistoryActivity.java
+++ b/omnipod/src/main/java/info/nightscout/androidaps/plugins/pump/omnipod/ui/PodHistoryActivity.java
@@ -275,13 +275,13 @@ public class PodHistoryActivity extends NoSplashAppCompatActivity {
case GET_POD_STATUS:
case GET_POD_INFO:
case SET_TIME:
- case ACTIVATE_POD:
+ case INITIALIZE_POD:
case CANCEL_TEMPORARY_BASAL_BY_DRIVER:
case CANCEL_TEMPORARY_BASAL:
case CONFIGURE_ALERTS:
case CANCEL_BOLUS:
case DEACTIVATE_POD:
- case DISCARD_POD_STATE:
+ case DISCARD_POD:
case ACKNOWLEDGE_ALERTS:
case SUSPEND_DELIVERY:
case RESUME_DELIVERY:
diff --git a/omnipod/src/main/java/info/nightscout/androidaps/plugins/pump/omnipod/ui/PodManagementActivity.kt b/omnipod/src/main/java/info/nightscout/androidaps/plugins/pump/omnipod/ui/PodManagementActivity.kt
index 27f730ef0d..03ee8035ae 100644
--- a/omnipod/src/main/java/info/nightscout/androidaps/plugins/pump/omnipod/ui/PodManagementActivity.kt
+++ b/omnipod/src/main/java/info/nightscout/androidaps/plugins/pump/omnipod/ui/PodManagementActivity.kt
@@ -2,8 +2,6 @@ package info.nightscout.androidaps.plugins.pump.omnipod.ui
import android.content.Intent
import android.os.Bundle
-import android.view.View
-import android.widget.LinearLayout
import dagger.android.HasAndroidInjector
import info.nightscout.androidaps.activities.NoSplashAppCompatActivity
import info.nightscout.androidaps.interfaces.CommandQueueProvider
@@ -14,10 +12,12 @@ import info.nightscout.androidaps.plugins.pump.omnipod.R
import info.nightscout.androidaps.plugins.pump.omnipod.driver.manager.PodStateManager
import info.nightscout.androidaps.plugins.pump.omnipod.event.EventOmnipodPumpValuesChanged
import info.nightscout.androidaps.plugins.pump.omnipod.manager.AapsOmnipodManager
-import info.nightscout.androidaps.plugins.pump.omnipod.ui.wizard.ChangePodWizardActivity
+import info.nightscout.androidaps.plugins.pump.omnipod.ui.wizard.activation.PodActivationWizardActivity
+import info.nightscout.androidaps.plugins.pump.omnipod.ui.wizard.deactivation.PodDeactivationWizardActivity
import info.nightscout.androidaps.utils.FabricPrivacy
import info.nightscout.androidaps.utils.alertDialogs.OKDialog
import info.nightscout.androidaps.utils.extensions.plusAssign
+import info.nightscout.androidaps.utils.extensions.toVisibility
import info.nightscout.androidaps.utils.resources.ResourceHelper
import io.reactivex.android.schedulers.AndroidSchedulers
import io.reactivex.disposables.CompositeDisposable
@@ -44,17 +44,23 @@ class PodManagementActivity : NoSplashAppCompatActivity() {
super.onCreate(savedInstanceState)
setContentView(R.layout.omnipod_pod_management)
- omnipod_pod_management_button_change_pod.setOnClickListener {
- val myIntent = Intent(this@PodManagementActivity, ChangePodWizardActivity::class.java)
- this@PodManagementActivity.startActivity(myIntent)
+ omnipod_pod_management_button_activate_pod.setOnClickListener {
+ startActivity(Intent(this, PodActivationWizardActivity::class.java))
+ }
+
+ omnipod_pod_management_button_deactivate_pod.setOnClickListener {
+ startActivity(Intent(this, PodDeactivationWizardActivity::class.java))
}
omnipod_pod_management_button_discard_pod.setOnClickListener {
- discardPodAction()
+ OKDialog.showConfirmation(this,
+ resourceHelper.gs(R.string.omnipod_pod_management_discard_pod_state_confirmation), Thread {
+ aapsOmnipodManager.discardPodState()
+ })
}
omnipod_pod_management_button_pod_history.setOnClickListener {
- showPodHistory()
+ startActivity(Intent(this, PodHistoryActivity::class.java))
}
}
@@ -77,29 +83,27 @@ class PodManagementActivity : NoSplashAppCompatActivity() {
disposables.clear()
}
- private fun discardPodAction() {
- OKDialog.showConfirmation(this,
- resourceHelper.gs(R.string.omnipod_pod_management_discard_pod_state_confirmation), Thread {
- aapsOmnipodManager.discardPodState()
- })
- }
-
- private fun showPodHistory() {
- startActivity(Intent(applicationContext, PodHistoryActivity::class.java))
- }
-
private fun refreshButtons() {
- omnipod_pod_management_button_change_pod.isEnabled = true
- omnipod_pod_management_button_discard_pod.isEnabled = podStateManager.hasPodState()
-
- val waitingForRlLayout = findViewById(R.id.omnipod_pod_management_waiting_for_rl_layout)
+ // Only show the discard button to reset a cached Pod address before the Pod has actually been initialized
+ // Otherwise, users should use the Deactivate Pod Wizard. In case proper deactivation fails,
+ // they will get an option to discard the Pod state there
+ // TODO maybe rename this button and the confirmation dialog text (see onCreate)
+ val discardButtonEnabled = podStateManager.hasPodState() && !podStateManager.isPodInitialized
+ omnipod_pod_management_button_discard_pod.visibility = discardButtonEnabled.toVisibility()
+ omnipod_pod_management_waiting_for_rl_layout.visibility = (!rileyLinkServiceData.rileyLinkServiceState.isReady).toVisibility()
if (rileyLinkServiceData.rileyLinkServiceState.isReady) {
- waitingForRlLayout.visibility = View.GONE
+ omnipod_pod_management_button_activate_pod.isEnabled = !podStateManager.isPodActivationCompleted
+ omnipod_pod_management_button_deactivate_pod.isEnabled = podStateManager.isPodInitialized
+ if (discardButtonEnabled) {
+ omnipod_pod_management_button_discard_pod.isEnabled = true
+ }
} else {
- waitingForRlLayout.visibility = View.VISIBLE
- omnipod_pod_management_button_change_pod.isEnabled = false
- omnipod_pod_management_button_discard_pod.isEnabled = false
+ omnipod_pod_management_button_activate_pod.isEnabled = false
+ omnipod_pod_management_button_deactivate_pod.isEnabled = false
+ if (discardButtonEnabled) {
+ omnipod_pod_management_button_discard_pod.isEnabled = false
+ }
}
}
diff --git a/omnipod/src/main/java/info/nightscout/androidaps/plugins/pump/omnipod/ui/wizard/ChangePodWizardActivity.kt b/omnipod/src/main/java/info/nightscout/androidaps/plugins/pump/omnipod/ui/wizard/ChangePodWizardActivity.kt
deleted file mode 100644
index bfdc60932a..0000000000
--- a/omnipod/src/main/java/info/nightscout/androidaps/plugins/pump/omnipod/ui/wizard/ChangePodWizardActivity.kt
+++ /dev/null
@@ -1,79 +0,0 @@
-package info.nightscout.androidaps.plugins.pump.omnipod.ui.wizard
-
-import android.app.AlertDialog
-import android.os.Bundle
-import androidx.annotation.IdRes
-import androidx.navigation.NavController
-import androidx.navigation.fragment.NavHostFragment
-import info.nightscout.androidaps.activities.NoSplashAppCompatActivity
-import info.nightscout.androidaps.plugins.pump.omnipod.R
-import info.nightscout.androidaps.plugins.pump.omnipod.driver.definition.PodProgressStatus
-import info.nightscout.androidaps.plugins.pump.omnipod.driver.manager.PodStateManager
-import javax.inject.Inject
-
-class ChangePodWizardActivity : NoSplashAppCompatActivity() {
- companion object {
- const val KEY_START_DESTINATION = "startDestination"
- }
-
- @Inject
- lateinit var podStateManager: PodStateManager
-
- @IdRes
- private var startDestination: Int = R.id.deactivatePodInfoFragment
-
- override fun onCreate(savedInstanceState: Bundle?) {
- super.onCreate(savedInstanceState)
-
- setContentView(R.layout.omnipod_change_pod_wizard_activity)
-
- startDestination = savedInstanceState?.getInt(KEY_START_DESTINATION, R.id.deactivatePodInfoFragment)
- ?: if (!podStateManager.isPodActivationCompleted) {
- if (!podStateManager.isPodInitialized || podStateManager.podProgressStatus.isBefore(PodProgressStatus.PRIMING_COMPLETED)) {
- R.id.fillPodInfoFragment
- } else {
- R.id.attachPodInfoFragment
- }
- } else {
- R.id.deactivatePodInfoFragment
- }
-
- setStartDestination(startDestination)
- }
-
- fun setStartDestination(@IdRes startDestination: Int) {
- this.startDestination = startDestination
- val navController = getNavController()
- val navInflater = navController.navInflater
- val graph = navInflater.inflate(R.navigation.omnipod_change_pod_wizard_navigation_graph)
- graph.startDestination = startDestination
- navController.graph = graph
- }
-
- override fun onBackPressed() {
- exitActivityAfterConfirmation()
- }
-
- fun exitActivityAfterConfirmation() {
- if (getNavController().previousBackStackEntry == null) {
- finish()
- } else {
- AlertDialog.Builder(this)
- .setIcon(android.R.drawable.ic_dialog_alert)
- .setTitle(getString(R.string.omnipod_change_pod_wizard_change_pod))
- .setMessage(getString(R.string.omnipod_change_pod_wizard_exit_confirmation))
- .setPositiveButton(getString(R.string.omnipod_yes)) { _, _ -> finish() }
- .setNegativeButton(getString(R.string.omnipod_no), null)
- .show()
- }
- }
-
- override fun onSaveInstanceState(outState: Bundle) {
- super.onSaveInstanceState(outState)
- outState.putInt(KEY_START_DESTINATION, startDestination)
- }
-
- private fun getNavController(): NavController =
- (supportFragmentManager.findFragmentById(R.id.nav_host_fragment) as NavHostFragment).navController
-
-}
\ No newline at end of file
diff --git a/omnipod/src/main/java/info/nightscout/androidaps/plugins/pump/omnipod/ui/wizard/activation/PodActivationWizardActivity.kt b/omnipod/src/main/java/info/nightscout/androidaps/plugins/pump/omnipod/ui/wizard/activation/PodActivationWizardActivity.kt
new file mode 100644
index 0000000000..183c3c239c
--- /dev/null
+++ b/omnipod/src/main/java/info/nightscout/androidaps/plugins/pump/omnipod/ui/wizard/activation/PodActivationWizardActivity.kt
@@ -0,0 +1,60 @@
+package info.nightscout.androidaps.plugins.pump.omnipod.ui.wizard.activation
+
+import android.os.Bundle
+import androidx.annotation.IdRes
+import info.nightscout.androidaps.plugins.pump.omnipod.R
+import info.nightscout.androidaps.plugins.pump.omnipod.driver.definition.PodProgressStatus
+import info.nightscout.androidaps.plugins.pump.omnipod.driver.manager.PodStateManager
+import info.nightscout.androidaps.plugins.pump.omnipod.ui.wizard.common.activity.OmnipodWizardActivityBase
+import javax.inject.Inject
+
+class PodActivationWizardActivity : OmnipodWizardActivityBase() {
+ companion object {
+ const val KEY_START_DESTINATION = "startDestination"
+ }
+
+ @Inject
+ lateinit var podStateManager: PodStateManager
+
+ @IdRes
+ private var startDestination: Int = R.id.fillPodInfoFragment
+
+ override fun onCreate(savedInstanceState: Bundle?) {
+ super.onCreate(savedInstanceState)
+
+ setContentView(R.layout.omnipod_pod_activation_wizard_activity)
+
+ startDestination = savedInstanceState?.getInt(KEY_START_DESTINATION, R.id.fillPodInfoFragment)
+ ?: if (!podStateManager.isPodInitialized || podStateManager.podProgressStatus.isBefore(PodProgressStatus.PRIMING_COMPLETED)) {
+ R.id.fillPodInfoFragment
+ } else {
+ R.id.attachPodInfoFragment
+ }
+
+ setStartDestination(startDestination)
+ }
+
+ private fun setStartDestination(@IdRes startDestination: Int) {
+ this.startDestination = startDestination
+ val navController = getNavController()
+ val navInflater = navController.navInflater
+ val graph = navInflater.inflate(R.navigation.omnipod_pod_activation_wizard_navigation_graph)
+ graph.startDestination = startDestination
+ navController.graph = graph
+ }
+
+ override fun onSaveInstanceState(outState: Bundle) {
+ super.onSaveInstanceState(outState)
+ outState.putInt(KEY_START_DESTINATION, startDestination)
+ }
+
+ override fun getTotalDefinedNumberOfSteps(): Int = 5
+
+ override fun getActualNumberOfSteps(): Int {
+ if (startDestination == R.id.attachPodInfoFragment) {
+ return 3
+ }
+ return 5
+ }
+
+}
\ No newline at end of file
diff --git a/omnipod/src/main/java/info/nightscout/androidaps/plugins/pump/omnipod/ui/wizard/fragment/info/AttachPodInfoFragment.kt b/omnipod/src/main/java/info/nightscout/androidaps/plugins/pump/omnipod/ui/wizard/activation/fragment/AttachPodInfoFragment.kt
similarity index 53%
rename from omnipod/src/main/java/info/nightscout/androidaps/plugins/pump/omnipod/ui/wizard/fragment/info/AttachPodInfoFragment.kt
rename to omnipod/src/main/java/info/nightscout/androidaps/plugins/pump/omnipod/ui/wizard/activation/fragment/AttachPodInfoFragment.kt
index 53eb8c4806..032f71d335 100644
--- a/omnipod/src/main/java/info/nightscout/androidaps/plugins/pump/omnipod/ui/wizard/fragment/info/AttachPodInfoFragment.kt
+++ b/omnipod/src/main/java/info/nightscout/androidaps/plugins/pump/omnipod/ui/wizard/activation/fragment/AttachPodInfoFragment.kt
@@ -1,18 +1,19 @@
-package info.nightscout.androidaps.plugins.pump.omnipod.ui.wizard.fragment.info
+package info.nightscout.androidaps.plugins.pump.omnipod.ui.wizard.activation.fragment
import androidx.annotation.IdRes
import androidx.annotation.StringRes
import info.nightscout.androidaps.plugins.pump.omnipod.R
+import info.nightscout.androidaps.plugins.pump.omnipod.ui.wizard.common.fragment.InfoFragmentBase
class AttachPodInfoFragment : InfoFragmentBase() {
@StringRes
- override fun getTitleId(): Int = R.string.omnipod_change_pod_wizard_attach_pod_title
+ override fun getTitleId(): Int = R.string.omnipod_pod_activation_wizard_attach_pod_title
@StringRes
- override fun getTextId(): Int = R.string.omnipod_change_pod_wizard_attach_pod_text
+ override fun getTextId(): Int = R.string.omnipod_pod_activation_wizard_attach_pod_text
@IdRes
override fun getNextPageActionId(): Int = R.id.action_attachPodInfoFragment_to_insertCannulaActionFragment
- override fun getIndex(): Int = 6
+ override fun getIndex(): Int = 3
}
\ No newline at end of file
diff --git a/omnipod/src/main/java/info/nightscout/androidaps/plugins/pump/omnipod/ui/wizard/activation/fragment/FillPodInfoFragment.kt b/omnipod/src/main/java/info/nightscout/androidaps/plugins/pump/omnipod/ui/wizard/activation/fragment/FillPodInfoFragment.kt
new file mode 100644
index 0000000000..425ff1e7ea
--- /dev/null
+++ b/omnipod/src/main/java/info/nightscout/androidaps/plugins/pump/omnipod/ui/wizard/activation/fragment/FillPodInfoFragment.kt
@@ -0,0 +1,19 @@
+package info.nightscout.androidaps.plugins.pump.omnipod.ui.wizard.activation.fragment
+
+import androidx.annotation.IdRes
+import androidx.annotation.StringRes
+import info.nightscout.androidaps.plugins.pump.omnipod.R
+import info.nightscout.androidaps.plugins.pump.omnipod.ui.wizard.common.fragment.InfoFragmentBase
+
+class FillPodInfoFragment : InfoFragmentBase() {
+ @StringRes
+ override fun getTitleId(): Int = R.string.omnipod_pod_activation_wizard_fill_pod_title
+
+ @StringRes
+ override fun getTextId(): Int = R.string.omnipod_pod_activation_wizard_fill_pod_text
+
+ @IdRes
+ override fun getNextPageActionId(): Int = R.id.action_fillPodInfoFragment_to_initializePodActionFragment
+
+ override fun getIndex(): Int = 1
+}
\ No newline at end of file
diff --git a/omnipod/src/main/java/info/nightscout/androidaps/plugins/pump/omnipod/ui/wizard/activation/fragment/InitializePodActionFragment.kt b/omnipod/src/main/java/info/nightscout/androidaps/plugins/pump/omnipod/ui/wizard/activation/fragment/InitializePodActionFragment.kt
new file mode 100644
index 0000000000..bc10c3daf1
--- /dev/null
+++ b/omnipod/src/main/java/info/nightscout/androidaps/plugins/pump/omnipod/ui/wizard/activation/fragment/InitializePodActionFragment.kt
@@ -0,0 +1,35 @@
+package info.nightscout.androidaps.plugins.pump.omnipod.ui.wizard.activation.fragment
+
+import android.os.Bundle
+import androidx.annotation.IdRes
+import androidx.annotation.StringRes
+import androidx.fragment.app.viewModels
+import androidx.lifecycle.ViewModelProvider
+import info.nightscout.androidaps.plugins.pump.omnipod.R
+import info.nightscout.androidaps.plugins.pump.omnipod.dagger.OmnipodPluginQualifier
+import info.nightscout.androidaps.plugins.pump.omnipod.ui.wizard.activation.viewmodel.InitializePodActionViewModel
+import javax.inject.Inject
+
+class InitializePodActionFragment : PodActivationActionFragmentBase() {
+ @Inject
+ @OmnipodPluginQualifier
+ lateinit var viewModelFactory: ViewModelProvider.Factory
+
+ override fun onCreate(savedInstanceState: Bundle?) {
+ super.onCreate(savedInstanceState)
+
+ val vm: InitializePodActionViewModel by viewModels { viewModelFactory }
+ this.viewModel = vm
+ }
+
+ @StringRes
+ override fun getTitleId(): Int = R.string.omnipod_pod_activation_wizard_initialize_pod_title
+
+ @StringRes
+ override fun getTextId(): Int = R.string.omnipod_pod_activation_wizard_initialize_pod_text
+
+ @IdRes
+ override fun getNextPageActionId(): Int = R.id.action_initializePodActionFragment_to_attachPodInfoFragment
+
+ override fun getIndex(): Int = 2
+}
\ No newline at end of file
diff --git a/omnipod/src/main/java/info/nightscout/androidaps/plugins/pump/omnipod/ui/wizard/activation/fragment/InsertCannulaActionFragment.kt b/omnipod/src/main/java/info/nightscout/androidaps/plugins/pump/omnipod/ui/wizard/activation/fragment/InsertCannulaActionFragment.kt
new file mode 100644
index 0000000000..009318c60d
--- /dev/null
+++ b/omnipod/src/main/java/info/nightscout/androidaps/plugins/pump/omnipod/ui/wizard/activation/fragment/InsertCannulaActionFragment.kt
@@ -0,0 +1,35 @@
+package info.nightscout.androidaps.plugins.pump.omnipod.ui.wizard.activation.fragment
+
+import android.os.Bundle
+import androidx.annotation.IdRes
+import androidx.annotation.StringRes
+import androidx.fragment.app.viewModels
+import androidx.lifecycle.ViewModelProvider
+import info.nightscout.androidaps.plugins.pump.omnipod.R
+import info.nightscout.androidaps.plugins.pump.omnipod.dagger.OmnipodPluginQualifier
+import info.nightscout.androidaps.plugins.pump.omnipod.ui.wizard.activation.viewmodel.InsertCannulaActionViewModel
+import javax.inject.Inject
+
+class InsertCannulaActionFragment : PodActivationActionFragmentBase() {
+ @Inject
+ @OmnipodPluginQualifier
+ lateinit var viewModelFactory: ViewModelProvider.Factory
+
+ override fun onCreate(savedInstanceState: Bundle?) {
+ super.onCreate(savedInstanceState)
+
+ val vm: InsertCannulaActionViewModel by viewModels { viewModelFactory }
+ this.viewModel = vm
+ }
+
+ @StringRes
+ override fun getTitleId(): Int = R.string.omnipod_pod_activation_wizard_insert_cannula_title
+
+ @StringRes
+ override fun getTextId(): Int = R.string.omnipod_pod_activation_wizard_insert_cannula_text
+
+ @IdRes
+ override fun getNextPageActionId(): Int = R.id.action_insertCannulaActionFragment_to_PodActivatedInfoFragment
+
+ override fun getIndex(): Int = 4
+}
\ No newline at end of file
diff --git a/omnipod/src/main/java/info/nightscout/androidaps/plugins/pump/omnipod/ui/wizard/activation/fragment/PodActivatedInfoFragment.kt b/omnipod/src/main/java/info/nightscout/androidaps/plugins/pump/omnipod/ui/wizard/activation/fragment/PodActivatedInfoFragment.kt
new file mode 100644
index 0000000000..455a8063a3
--- /dev/null
+++ b/omnipod/src/main/java/info/nightscout/androidaps/plugins/pump/omnipod/ui/wizard/activation/fragment/PodActivatedInfoFragment.kt
@@ -0,0 +1,19 @@
+package info.nightscout.androidaps.plugins.pump.omnipod.ui.wizard.activation.fragment
+
+import androidx.annotation.IdRes
+import androidx.annotation.StringRes
+import info.nightscout.androidaps.plugins.pump.omnipod.R
+import info.nightscout.androidaps.plugins.pump.omnipod.ui.wizard.common.fragment.InfoFragmentBase
+
+class PodActivatedInfoFragment : InfoFragmentBase() {
+ @StringRes
+ override fun getTitleId(): Int = R.string.omnipod_pod_activation_wizard_pod_activated_title
+
+ @StringRes
+ override fun getTextId(): Int = R.string.omnipod_pod_activation_wizard_pod_activated_text
+
+ @IdRes
+ override fun getNextPageActionId(): Int? = null
+
+ override fun getIndex(): Int = 5
+}
\ No newline at end of file
diff --git a/omnipod/src/main/java/info/nightscout/androidaps/plugins/pump/omnipod/ui/wizard/activation/fragment/PodActivationActionFragmentBase.kt b/omnipod/src/main/java/info/nightscout/androidaps/plugins/pump/omnipod/ui/wizard/activation/fragment/PodActivationActionFragmentBase.kt
new file mode 100644
index 0000000000..2055d895e0
--- /dev/null
+++ b/omnipod/src/main/java/info/nightscout/androidaps/plugins/pump/omnipod/ui/wizard/activation/fragment/PodActivationActionFragmentBase.kt
@@ -0,0 +1,36 @@
+package info.nightscout.androidaps.plugins.pump.omnipod.ui.wizard.activation.fragment
+
+import android.content.Intent
+import android.os.Bundle
+import android.view.View
+import info.nightscout.androidaps.plugins.pump.omnipod.R
+import info.nightscout.androidaps.plugins.pump.omnipod.driver.definition.PodProgressStatus
+import info.nightscout.androidaps.plugins.pump.omnipod.driver.manager.PodStateManager
+import info.nightscout.androidaps.plugins.pump.omnipod.ui.wizard.common.fragment.ActionFragmentBase
+import info.nightscout.androidaps.plugins.pump.omnipod.ui.wizard.deactivation.PodDeactivationWizardActivity
+import kotlinx.android.synthetic.main.omnipod_wizard_action_page_fragment.*
+import javax.inject.Inject
+
+abstract class PodActivationActionFragmentBase : ActionFragmentBase() {
+ @Inject
+ protected lateinit var podStateManager: PodStateManager
+
+ override fun onViewCreated(view: View, savedInstanceState: Bundle?) {
+ super.onViewCreated(view, savedInstanceState)
+
+ omnipod_wizard_button_deactivate_pod.setOnClickListener {
+ activity?.let {
+ startActivity(Intent(it, PodDeactivationWizardActivity::class.java))
+ it.finish()
+ }
+ }
+ }
+
+ override fun onActionFailure() {
+ if (podStateManager.isPodInitialized && podStateManager.podProgressStatus == PodProgressStatus.ACTIVATION_TIME_EXCEEDED) {
+ omnipod_wizard_action_error.setText(R.string.omnipod_error_pod_fault_activation_time_exceeded)
+ omnipod_wizard_button_retry.visibility = View.GONE
+ omnipod_wizard_button_deactivate_pod.visibility = View.VISIBLE
+ }
+ }
+}
\ No newline at end of file
diff --git a/omnipod/src/main/java/info/nightscout/androidaps/plugins/pump/omnipod/ui/wizard/viewmodel/PairAndPrimePodActionViewModel.kt b/omnipod/src/main/java/info/nightscout/androidaps/plugins/pump/omnipod/ui/wizard/activation/viewmodel/InitializePodActionViewModel.kt
similarity index 51%
rename from omnipod/src/main/java/info/nightscout/androidaps/plugins/pump/omnipod/ui/wizard/viewmodel/PairAndPrimePodActionViewModel.kt
rename to omnipod/src/main/java/info/nightscout/androidaps/plugins/pump/omnipod/ui/wizard/activation/viewmodel/InitializePodActionViewModel.kt
index 45c9a39f36..429b1170d2 100644
--- a/omnipod/src/main/java/info/nightscout/androidaps/plugins/pump/omnipod/ui/wizard/viewmodel/PairAndPrimePodActionViewModel.kt
+++ b/omnipod/src/main/java/info/nightscout/androidaps/plugins/pump/omnipod/ui/wizard/activation/viewmodel/InitializePodActionViewModel.kt
@@ -1,9 +1,10 @@
-package info.nightscout.androidaps.plugins.pump.omnipod.ui.wizard.viewmodel
+package info.nightscout.androidaps.plugins.pump.omnipod.ui.wizard.activation.viewmodel
import info.nightscout.androidaps.data.PumpEnactResult
import info.nightscout.androidaps.plugins.pump.omnipod.manager.AapsOmnipodManager
+import info.nightscout.androidaps.plugins.pump.omnipod.ui.wizard.common.viewmodel.ActionViewModelBase
import javax.inject.Inject
-class PairAndPrimePodActionViewModel @Inject constructor(private val aapsOmnipodManager: AapsOmnipodManager) : ActionViewModelBase() {
- override fun doExecuteAction(): PumpEnactResult = aapsOmnipodManager.activateNewPod()
+class InitializePodActionViewModel @Inject constructor(private val aapsOmnipodManager: AapsOmnipodManager) : ActionViewModelBase() {
+ override fun doExecuteAction(): PumpEnactResult = aapsOmnipodManager.initializePod()
}
\ No newline at end of file
diff --git a/omnipod/src/main/java/info/nightscout/androidaps/plugins/pump/omnipod/ui/wizard/viewmodel/InsertCannulaActionViewModel.kt b/omnipod/src/main/java/info/nightscout/androidaps/plugins/pump/omnipod/ui/wizard/activation/viewmodel/InsertCannulaActionViewModel.kt
similarity index 82%
rename from omnipod/src/main/java/info/nightscout/androidaps/plugins/pump/omnipod/ui/wizard/viewmodel/InsertCannulaActionViewModel.kt
rename to omnipod/src/main/java/info/nightscout/androidaps/plugins/pump/omnipod/ui/wizard/activation/viewmodel/InsertCannulaActionViewModel.kt
index 25c3bd9a34..fe042a4a03 100644
--- a/omnipod/src/main/java/info/nightscout/androidaps/plugins/pump/omnipod/ui/wizard/viewmodel/InsertCannulaActionViewModel.kt
+++ b/omnipod/src/main/java/info/nightscout/androidaps/plugins/pump/omnipod/ui/wizard/activation/viewmodel/InsertCannulaActionViewModel.kt
@@ -1,8 +1,9 @@
-package info.nightscout.androidaps.plugins.pump.omnipod.ui.wizard.viewmodel
+package info.nightscout.androidaps.plugins.pump.omnipod.ui.wizard.activation.viewmodel
import info.nightscout.androidaps.data.PumpEnactResult
import info.nightscout.androidaps.interfaces.ProfileFunction
import info.nightscout.androidaps.plugins.pump.omnipod.manager.AapsOmnipodManager
+import info.nightscout.androidaps.plugins.pump.omnipod.ui.wizard.common.viewmodel.ActionViewModelBase
import javax.inject.Inject
class InsertCannulaActionViewModel @Inject constructor(private val aapsOmnipodManager: AapsOmnipodManager, private val profileFunction: ProfileFunction) : ActionViewModelBase() {
diff --git a/omnipod/src/main/java/info/nightscout/androidaps/plugins/pump/omnipod/ui/wizard/common/activity/OmnipodWizardActivityBase.kt b/omnipod/src/main/java/info/nightscout/androidaps/plugins/pump/omnipod/ui/wizard/common/activity/OmnipodWizardActivityBase.kt
new file mode 100644
index 0000000000..b15e1a8012
--- /dev/null
+++ b/omnipod/src/main/java/info/nightscout/androidaps/plugins/pump/omnipod/ui/wizard/common/activity/OmnipodWizardActivityBase.kt
@@ -0,0 +1,34 @@
+package info.nightscout.androidaps.plugins.pump.omnipod.ui.wizard.common.activity
+
+import android.app.AlertDialog
+import androidx.navigation.NavController
+import androidx.navigation.fragment.NavHostFragment
+import info.nightscout.androidaps.activities.NoSplashAppCompatActivity
+import info.nightscout.androidaps.plugins.pump.omnipod.R
+
+abstract class OmnipodWizardActivityBase : NoSplashAppCompatActivity() {
+ override fun onBackPressed() {
+ exitActivityAfterConfirmation()
+ }
+
+ fun exitActivityAfterConfirmation() {
+ if (getNavController().previousBackStackEntry == null) {
+ finish()
+ } else {
+ AlertDialog.Builder(this)
+ .setIcon(android.R.drawable.ic_dialog_alert)
+ .setTitle(getString(R.string.omnipod_wizard_exit_confirmation_title))
+ .setMessage(getString(R.string.omnipod_wizard_exit_confirmation_text))
+ .setPositiveButton(getString(R.string.omnipod_yes)) { _, _ -> finish() }
+ .setNegativeButton(getString(R.string.omnipod_no), null)
+ .show()
+ }
+ }
+
+ protected fun getNavController(): NavController =
+ (supportFragmentManager.findFragmentById(R.id.nav_host_fragment) as NavHostFragment).navController
+
+ abstract fun getTotalDefinedNumberOfSteps(): Int
+
+ abstract fun getActualNumberOfSteps(): Int
+}
\ No newline at end of file
diff --git a/omnipod/src/main/java/info/nightscout/androidaps/plugins/pump/omnipod/ui/wizard/fragment/action/ActionFragmentBase.kt b/omnipod/src/main/java/info/nightscout/androidaps/plugins/pump/omnipod/ui/wizard/common/fragment/ActionFragmentBase.kt
similarity index 50%
rename from omnipod/src/main/java/info/nightscout/androidaps/plugins/pump/omnipod/ui/wizard/fragment/action/ActionFragmentBase.kt
rename to omnipod/src/main/java/info/nightscout/androidaps/plugins/pump/omnipod/ui/wizard/common/fragment/ActionFragmentBase.kt
index d640cfedbd..1b0d8e41f6 100644
--- a/omnipod/src/main/java/info/nightscout/androidaps/plugins/pump/omnipod/ui/wizard/fragment/action/ActionFragmentBase.kt
+++ b/omnipod/src/main/java/info/nightscout/androidaps/plugins/pump/omnipod/ui/wizard/common/fragment/ActionFragmentBase.kt
@@ -1,4 +1,4 @@
-package info.nightscout.androidaps.plugins.pump.omnipod.ui.wizard.fragment.action
+package info.nightscout.androidaps.plugins.pump.omnipod.ui.wizard.common.fragment
import android.os.Bundle
import android.view.View
@@ -6,47 +6,46 @@ import androidx.annotation.LayoutRes
import androidx.annotation.StringRes
import androidx.lifecycle.Observer
import info.nightscout.androidaps.plugins.pump.omnipod.R
-import info.nightscout.androidaps.plugins.pump.omnipod.ui.wizard.fragment.ChangePodWizardFragmentBase
-import info.nightscout.androidaps.plugins.pump.omnipod.ui.wizard.viewmodel.ActionViewModelBase
+import info.nightscout.androidaps.plugins.pump.omnipod.ui.wizard.common.viewmodel.ActionViewModelBase
import info.nightscout.androidaps.utils.extensions.toVisibility
-import kotlinx.android.synthetic.main.omnipod_change_pod_wizard_action_page_fragment.*
-import kotlinx.android.synthetic.main.omnipod_change_pod_wizard_nav_buttons.*
+import kotlinx.android.synthetic.main.omnipod_wizard_action_page_fragment.*
+import kotlinx.android.synthetic.main.omnipod_wizard_nav_buttons.*
-abstract class ActionFragmentBase : ChangePodWizardFragmentBase() {
+abstract class ActionFragmentBase : WizardFragmentBase() {
protected lateinit var viewModel: ActionViewModelBase
override fun onViewCreated(view: View, savedInstanceState: Bundle?) {
super.onViewCreated(view, savedInstanceState)
- omnipod_change_pod_wizard_button_next.isEnabled = false
- omnipod_change_pod_wizard_action_page_text.setText(getTextId())
+ omnipod_wizard_button_next.isEnabled = false
+ omnipod_wizard_action_page_text.setText(getTextId())
- omnipod_change_pod_wizard_button_retry.setOnClickListener { viewModel.executeAction() }
+ omnipod_wizard_button_retry.setOnClickListener { viewModel.executeAction() }
viewModel.isActionExecutingLiveData.observe(viewLifecycleOwner, Observer { isExecuting ->
if (isExecuting) {
- omnipod_change_pod_wizard_action_error.visibility = View.GONE
- omnipod_change_pod_wizard_button_deactivate_pod.visibility = View.GONE
- omnipod_change_pod_wizard_button_discard_pod.visibility = View.GONE
- omnipod_change_pod_wizard_button_retry.visibility = View.GONE
+ omnipod_wizard_action_error.visibility = View.GONE
+ omnipod_wizard_button_deactivate_pod.visibility = View.GONE
+ omnipod_wizard_button_discard_pod.visibility = View.GONE
+ omnipod_wizard_button_retry.visibility = View.GONE
}
- omnipod_change_pod_wizard_action_progress_indication.visibility = isExecuting.toVisibility()
- omnipod_change_pod_wizard_button_cancel.isEnabled = !isExecuting
+ omnipod_wizard_action_progress_indication.visibility = isExecuting.toVisibility()
+ omnipod_wizard_button_cancel.isEnabled = !isExecuting
})
viewModel.actionResultLiveData.observe(viewLifecycleOwner, Observer { result ->
result?.let {
val isExecuting = isActionExecuting()
- omnipod_change_pod_wizard_button_next.isEnabled = result.success
- omnipod_change_pod_wizard_action_success.visibility = result.success.toVisibility()
- omnipod_change_pod_wizard_action_error.visibility = (!isExecuting && !result.success).toVisibility()
- omnipod_change_pod_wizard_button_retry.visibility = (!isExecuting && !result.success).toVisibility()
+ omnipod_wizard_button_next.isEnabled = result.success
+ omnipod_wizard_action_success.visibility = result.success.toVisibility()
+ omnipod_wizard_action_error.visibility = (!isExecuting && !result.success).toVisibility()
+ omnipod_wizard_button_retry.visibility = (!isExecuting && !result.success).toVisibility()
if (result.success) {
onActionSuccess()
} else {
- omnipod_change_pod_wizard_action_error.text = result.comment
+ omnipod_wizard_action_error.text = result.comment
onActionFailure()
}
}
@@ -75,6 +74,6 @@ abstract class ActionFragmentBase : ChangePodWizardFragmentBase() {
@LayoutRes
override fun getLayoutId(): Int {
- return R.layout.omnipod_change_pod_wizard_action_page_fragment
+ return R.layout.omnipod_wizard_action_page_fragment
}
}
\ No newline at end of file
diff --git a/omnipod/src/main/java/info/nightscout/androidaps/plugins/pump/omnipod/ui/wizard/fragment/info/InfoFragmentBase.kt b/omnipod/src/main/java/info/nightscout/androidaps/plugins/pump/omnipod/ui/wizard/common/fragment/InfoFragmentBase.kt
similarity index 54%
rename from omnipod/src/main/java/info/nightscout/androidaps/plugins/pump/omnipod/ui/wizard/fragment/info/InfoFragmentBase.kt
rename to omnipod/src/main/java/info/nightscout/androidaps/plugins/pump/omnipod/ui/wizard/common/fragment/InfoFragmentBase.kt
index 1a69cbd701..d1008a1bea 100644
--- a/omnipod/src/main/java/info/nightscout/androidaps/plugins/pump/omnipod/ui/wizard/fragment/info/InfoFragmentBase.kt
+++ b/omnipod/src/main/java/info/nightscout/androidaps/plugins/pump/omnipod/ui/wizard/common/fragment/InfoFragmentBase.kt
@@ -1,19 +1,18 @@
-package info.nightscout.androidaps.plugins.pump.omnipod.ui.wizard.fragment.info
+package info.nightscout.androidaps.plugins.pump.omnipod.ui.wizard.common.fragment
import android.os.Bundle
import android.view.View
import androidx.annotation.LayoutRes
import androidx.annotation.StringRes
import info.nightscout.androidaps.plugins.pump.omnipod.R
-import info.nightscout.androidaps.plugins.pump.omnipod.ui.wizard.fragment.ChangePodWizardFragmentBase
-import kotlinx.android.synthetic.main.omnipod_change_pod_wizard_info_page_fragment.*
+import kotlinx.android.synthetic.main.omnipod_wizard_info_page_fragment.*
-abstract class InfoFragmentBase : ChangePodWizardFragmentBase() {
+abstract class InfoFragmentBase : WizardFragmentBase() {
override fun onViewCreated(view: View, savedInstanceState: Bundle?) {
super.onViewCreated(view, savedInstanceState)
- omnipod_change_pod_wizard_info_page_text.setText(getTextId())
+ omnipod_wizard_info_page_text.setText(getTextId())
}
@StringRes
@@ -21,7 +20,7 @@ abstract class InfoFragmentBase : ChangePodWizardFragmentBase() {
@LayoutRes
override fun getLayoutId(): Int {
- return R.layout.omnipod_change_pod_wizard_info_page_fragment
+ return R.layout.omnipod_wizard_info_page_fragment
}
}
\ No newline at end of file
diff --git a/omnipod/src/main/java/info/nightscout/androidaps/plugins/pump/omnipod/ui/wizard/common/fragment/WizardFragmentBase.kt b/omnipod/src/main/java/info/nightscout/androidaps/plugins/pump/omnipod/ui/wizard/common/fragment/WizardFragmentBase.kt
new file mode 100644
index 0000000000..cd6f135f08
--- /dev/null
+++ b/omnipod/src/main/java/info/nightscout/androidaps/plugins/pump/omnipod/ui/wizard/common/fragment/WizardFragmentBase.kt
@@ -0,0 +1,84 @@
+package info.nightscout.androidaps.plugins.pump.omnipod.ui.wizard.common.fragment
+
+import android.content.res.ColorStateList
+import android.os.Bundle
+import android.view.LayoutInflater
+import android.view.View
+import android.view.ViewGroup
+import android.view.ViewStub
+import androidx.annotation.IdRes
+import androidx.annotation.LayoutRes
+import androidx.annotation.StringRes
+import androidx.navigation.fragment.findNavController
+import dagger.android.support.DaggerFragment
+import info.nightscout.androidaps.plugins.pump.omnipod.R
+import info.nightscout.androidaps.plugins.pump.omnipod.ui.wizard.common.activity.OmnipodWizardActivityBase
+import kotlinx.android.synthetic.main.omnipod_wizard_base_fragment.*
+import kotlinx.android.synthetic.main.omnipod_wizard_nav_buttons.*
+import kotlinx.android.synthetic.main.omnipod_wizard_progress_indication.*
+import kotlin.math.roundToInt
+
+abstract class WizardFragmentBase : DaggerFragment() {
+ override fun onCreateView(
+ inflater: LayoutInflater,
+ container: ViewGroup?,
+ savedInstanceState: Bundle?
+ ): View {
+ val baseView = inflater.inflate(R.layout.omnipod_wizard_base_fragment, container, false)
+ val contentView = baseView.findViewById(R.id.omnipod_wizard_base_fragment_content)
+ contentView?.let {
+ it.layoutResource = getLayoutId()
+ it.inflate()
+ }
+ return baseView
+ }
+
+ override fun onViewCreated(view: View, savedInstanceState: Bundle?) {
+ super.onViewCreated(view, savedInstanceState)
+
+ omnipod_wizard_base_fragment_title.setText(getTitleId())
+
+ val nextPage = getNextPageActionId()
+
+ if (nextPage == null) {
+ omnipod_wizard_button_next.text = getString(R.string.omnipod_wizard_button_finish)
+ omnipod_wizard_button_next.backgroundTintList = ColorStateList.valueOf(resources.getColor(R.color.review_green, context?.theme))
+ }
+
+ updateProgressIndication()
+
+ omnipod_wizard_button_next.setOnClickListener {
+ if (nextPage == null) {
+ activity?.finish()
+ } else {
+ findNavController().navigate(nextPage)
+ }
+ }
+
+ omnipod_wizard_button_cancel.setOnClickListener {
+ (activity as? OmnipodWizardActivityBase)?.exitActivityAfterConfirmation()
+ }
+ }
+
+ private fun updateProgressIndication() {
+ (activity as? OmnipodWizardActivityBase)?.let {
+ val numberOfSteps = it.getActualNumberOfSteps()
+
+ val currentFragment = getIndex() - (it.getTotalDefinedNumberOfSteps() - numberOfSteps)
+ val progressPercentage = (currentFragment / numberOfSteps.toDouble() * 100).roundToInt()
+
+ omnipod_wizard_progress_indication.progress = progressPercentage
+ }
+ }
+
+ @LayoutRes
+ protected abstract fun getLayoutId(): Int
+
+ @IdRes
+ protected abstract fun getNextPageActionId(): Int?
+
+ @StringRes
+ protected abstract fun getTitleId(): Int
+
+ protected abstract fun getIndex(): Int
+}
\ No newline at end of file
diff --git a/omnipod/src/main/java/info/nightscout/androidaps/plugins/pump/omnipod/ui/wizard/viewmodel/ActionViewModelBase.kt b/omnipod/src/main/java/info/nightscout/androidaps/plugins/pump/omnipod/ui/wizard/common/viewmodel/ActionViewModelBase.kt
similarity index 98%
rename from omnipod/src/main/java/info/nightscout/androidaps/plugins/pump/omnipod/ui/wizard/viewmodel/ActionViewModelBase.kt
rename to omnipod/src/main/java/info/nightscout/androidaps/plugins/pump/omnipod/ui/wizard/common/viewmodel/ActionViewModelBase.kt
index f6212758eb..1590f752e2 100644
--- a/omnipod/src/main/java/info/nightscout/androidaps/plugins/pump/omnipod/ui/wizard/viewmodel/ActionViewModelBase.kt
+++ b/omnipod/src/main/java/info/nightscout/androidaps/plugins/pump/omnipod/ui/wizard/common/viewmodel/ActionViewModelBase.kt
@@ -1,4 +1,4 @@
-package info.nightscout.androidaps.plugins.pump.omnipod.ui.wizard.viewmodel
+package info.nightscout.androidaps.plugins.pump.omnipod.ui.wizard.common.viewmodel
import androidx.lifecycle.LiveData
import androidx.lifecycle.MutableLiveData
diff --git a/omnipod/src/main/java/info/nightscout/androidaps/plugins/pump/omnipod/ui/wizard/deactivation/PodDeactivationWizardActivity.kt b/omnipod/src/main/java/info/nightscout/androidaps/plugins/pump/omnipod/ui/wizard/deactivation/PodDeactivationWizardActivity.kt
new file mode 100644
index 0000000000..892d85a97e
--- /dev/null
+++ b/omnipod/src/main/java/info/nightscout/androidaps/plugins/pump/omnipod/ui/wizard/deactivation/PodDeactivationWizardActivity.kt
@@ -0,0 +1,18 @@
+package info.nightscout.androidaps.plugins.pump.omnipod.ui.wizard.deactivation
+
+import android.os.Bundle
+import info.nightscout.androidaps.plugins.pump.omnipod.R
+import info.nightscout.androidaps.plugins.pump.omnipod.ui.wizard.common.activity.OmnipodWizardActivityBase
+
+class PodDeactivationWizardActivity : OmnipodWizardActivityBase() {
+ override fun onCreate(savedInstanceState: Bundle?) {
+ super.onCreate(savedInstanceState)
+
+ setContentView(R.layout.omnipod_pod_deactivation_wizard_activity)
+ }
+
+ override fun getTotalDefinedNumberOfSteps(): Int = 3
+
+ override fun getActualNumberOfSteps(): Int = 3
+
+}
\ No newline at end of file
diff --git a/omnipod/src/main/java/info/nightscout/androidaps/plugins/pump/omnipod/ui/wizard/fragment/action/DeactivatePodActionFragment.kt b/omnipod/src/main/java/info/nightscout/androidaps/plugins/pump/omnipod/ui/wizard/deactivation/fragment/DeactivatePodActionFragment.kt
similarity index 71%
rename from omnipod/src/main/java/info/nightscout/androidaps/plugins/pump/omnipod/ui/wizard/fragment/action/DeactivatePodActionFragment.kt
rename to omnipod/src/main/java/info/nightscout/androidaps/plugins/pump/omnipod/ui/wizard/deactivation/fragment/DeactivatePodActionFragment.kt
index 202889fdc0..a88b5866be 100644
--- a/omnipod/src/main/java/info/nightscout/androidaps/plugins/pump/omnipod/ui/wizard/fragment/action/DeactivatePodActionFragment.kt
+++ b/omnipod/src/main/java/info/nightscout/androidaps/plugins/pump/omnipod/ui/wizard/deactivation/fragment/DeactivatePodActionFragment.kt
@@ -1,4 +1,4 @@
-package info.nightscout.androidaps.plugins.pump.omnipod.ui.wizard.fragment.action
+package info.nightscout.androidaps.plugins.pump.omnipod.ui.wizard.deactivation.fragment
import android.app.AlertDialog
import android.os.Bundle
@@ -11,9 +11,10 @@ import androidx.navigation.fragment.findNavController
import info.nightscout.androidaps.plugins.pump.omnipod.R
import info.nightscout.androidaps.plugins.pump.omnipod.dagger.OmnipodPluginQualifier
import info.nightscout.androidaps.plugins.pump.omnipod.manager.AapsOmnipodManager
-import info.nightscout.androidaps.plugins.pump.omnipod.ui.wizard.viewmodel.DeactivatePodActionViewModel
+import info.nightscout.androidaps.plugins.pump.omnipod.ui.wizard.common.fragment.ActionFragmentBase
+import info.nightscout.androidaps.plugins.pump.omnipod.ui.wizard.deactivation.viewmodel.DeactivatePodActionViewModel
import info.nightscout.androidaps.utils.extensions.toVisibility
-import kotlinx.android.synthetic.main.omnipod_change_pod_wizard_action_page_fragment.*
+import kotlinx.android.synthetic.main.omnipod_wizard_action_page_fragment.*
import javax.inject.Inject
class DeactivatePodActionFragment : ActionFragmentBase() {
@@ -33,11 +34,11 @@ class DeactivatePodActionFragment : ActionFragmentBase() {
override fun onViewCreated(view: View, savedInstanceState: Bundle?) {
super.onViewCreated(view, savedInstanceState)
- omnipod_change_pod_wizard_button_discard_pod.setOnClickListener {
+ omnipod_wizard_button_discard_pod.setOnClickListener {
AlertDialog.Builder(context)
.setIcon(android.R.drawable.ic_dialog_alert)
- .setTitle(getString(R.string.omnipod_change_pod_wizard_discard_pod))
- .setMessage(getString(R.string.omnipod_change_pod_wizard_discard_pod_confirmation))
+ .setTitle(getString(R.string.omnipod_pod_deactivation_wizard_discard_pod))
+ .setMessage(getString(R.string.omnipod_pod_deactivation_wizard_discard_pod_confirmation))
.setPositiveButton(getString(R.string.omnipod_yes)) { _, _ ->
aapsOmnipodManager.discardPodState()
findNavController().navigate(R.id.action_deactivatePodActionFragment_to_podDiscardedInfoFragment)
@@ -48,14 +49,14 @@ class DeactivatePodActionFragment : ActionFragmentBase() {
}
override fun onActionFailure() {
- omnipod_change_pod_wizard_button_discard_pod.visibility = (!isActionExecuting()).toVisibility()
+ omnipod_wizard_button_discard_pod.visibility = (!isActionExecuting()).toVisibility()
}
@StringRes
- override fun getTitleId(): Int = R.string.omnipod_change_pod_wizard_deactivating_pod_title
+ override fun getTitleId(): Int = R.string.omnipod_pod_deactivation_wizard_deactivating_pod_title
@StringRes
- override fun getTextId(): Int = R.string.omnipod_change_pod_wizard_deactivating_pod_text
+ override fun getTextId(): Int = R.string.omnipod_pod_deactivation_wizard_deactivating_pod_text
@IdRes
override fun getNextPageActionId(): Int = R.id.action_deactivatePodActionFragment_to_podDeactivatedInfoFragment
diff --git a/omnipod/src/main/java/info/nightscout/androidaps/plugins/pump/omnipod/ui/wizard/fragment/info/DeactivatePodInfoFragment.kt b/omnipod/src/main/java/info/nightscout/androidaps/plugins/pump/omnipod/ui/wizard/deactivation/fragment/DeactivatePodInfoFragment.kt
similarity index 58%
rename from omnipod/src/main/java/info/nightscout/androidaps/plugins/pump/omnipod/ui/wizard/fragment/info/DeactivatePodInfoFragment.kt
rename to omnipod/src/main/java/info/nightscout/androidaps/plugins/pump/omnipod/ui/wizard/deactivation/fragment/DeactivatePodInfoFragment.kt
index 824a2e44b2..5fefcfc549 100644
--- a/omnipod/src/main/java/info/nightscout/androidaps/plugins/pump/omnipod/ui/wizard/fragment/info/DeactivatePodInfoFragment.kt
+++ b/omnipod/src/main/java/info/nightscout/androidaps/plugins/pump/omnipod/ui/wizard/deactivation/fragment/DeactivatePodInfoFragment.kt
@@ -1,15 +1,16 @@
-package info.nightscout.androidaps.plugins.pump.omnipod.ui.wizard.fragment.info
+package info.nightscout.androidaps.plugins.pump.omnipod.ui.wizard.deactivation.fragment
import androidx.annotation.IdRes
import androidx.annotation.StringRes
import info.nightscout.androidaps.plugins.pump.omnipod.R
+import info.nightscout.androidaps.plugins.pump.omnipod.ui.wizard.common.fragment.InfoFragmentBase
class DeactivatePodInfoFragment : InfoFragmentBase() {
@StringRes
- override fun getTitleId(): Int = R.string.omnipod_change_pod_wizard_deactivate_pod_title
+ override fun getTitleId(): Int = R.string.omnipod_pod_deactivation_wizard_deactivate_pod_title
@StringRes
- override fun getTextId(): Int = R.string.omnipod_change_pod_wizard_deactivate_pod_text
+ override fun getTextId(): Int = R.string.omnipod_pod_deactivation_wizard_deactivate_pod_text
@IdRes
override fun getNextPageActionId(): Int = R.id.action_deactivatePodInfoFragment_to_deactivatePodActionFragment
diff --git a/omnipod/src/main/java/info/nightscout/androidaps/plugins/pump/omnipod/ui/wizard/deactivation/fragment/PodDeactivatedInfoFragment.kt b/omnipod/src/main/java/info/nightscout/androidaps/plugins/pump/omnipod/ui/wizard/deactivation/fragment/PodDeactivatedInfoFragment.kt
new file mode 100644
index 0000000000..3b1c80cbb1
--- /dev/null
+++ b/omnipod/src/main/java/info/nightscout/androidaps/plugins/pump/omnipod/ui/wizard/deactivation/fragment/PodDeactivatedInfoFragment.kt
@@ -0,0 +1,19 @@
+package info.nightscout.androidaps.plugins.pump.omnipod.ui.wizard.deactivation.fragment
+
+import androidx.annotation.IdRes
+import androidx.annotation.StringRes
+import info.nightscout.androidaps.plugins.pump.omnipod.R
+import info.nightscout.androidaps.plugins.pump.omnipod.ui.wizard.common.fragment.InfoFragmentBase
+
+class PodDeactivatedInfoFragment : InfoFragmentBase() {
+ @StringRes
+ override fun getTitleId(): Int = R.string.omnipod_pod_deactivation_wizard_pod_deactivated_title
+
+ @StringRes
+ override fun getTextId(): Int = R.string.omnipod_pod_deactivation_wizard_pod_deactivated_text
+
+ @IdRes
+ override fun getNextPageActionId(): Int? = null
+
+ override fun getIndex(): Int = 3
+}
\ No newline at end of file
diff --git a/omnipod/src/main/java/info/nightscout/androidaps/plugins/pump/omnipod/ui/wizard/deactivation/fragment/PodDiscardedInfoFragment.kt b/omnipod/src/main/java/info/nightscout/androidaps/plugins/pump/omnipod/ui/wizard/deactivation/fragment/PodDiscardedInfoFragment.kt
new file mode 100644
index 0000000000..7b53f4abc4
--- /dev/null
+++ b/omnipod/src/main/java/info/nightscout/androidaps/plugins/pump/omnipod/ui/wizard/deactivation/fragment/PodDiscardedInfoFragment.kt
@@ -0,0 +1,19 @@
+package info.nightscout.androidaps.plugins.pump.omnipod.ui.wizard.deactivation.fragment
+
+import androidx.annotation.IdRes
+import androidx.annotation.StringRes
+import info.nightscout.androidaps.plugins.pump.omnipod.R
+import info.nightscout.androidaps.plugins.pump.omnipod.ui.wizard.common.fragment.InfoFragmentBase
+
+class PodDiscardedInfoFragment : InfoFragmentBase() {
+ @StringRes
+ override fun getTitleId(): Int = R.string.omnipod_pod_deactivation_wizard_pod_discarded_title
+
+ @StringRes
+ override fun getTextId(): Int = R.string.omnipod_pod_deactivation_wizard_pod_discarded_text
+
+ @IdRes
+ override fun getNextPageActionId(): Int? = null
+
+ override fun getIndex(): Int = 3
+}
\ No newline at end of file
diff --git a/omnipod/src/main/java/info/nightscout/androidaps/plugins/pump/omnipod/ui/wizard/viewmodel/DeactivatePodActionViewModel.kt b/omnipod/src/main/java/info/nightscout/androidaps/plugins/pump/omnipod/ui/wizard/deactivation/viewmodel/DeactivatePodActionViewModel.kt
similarity index 89%
rename from omnipod/src/main/java/info/nightscout/androidaps/plugins/pump/omnipod/ui/wizard/viewmodel/DeactivatePodActionViewModel.kt
rename to omnipod/src/main/java/info/nightscout/androidaps/plugins/pump/omnipod/ui/wizard/deactivation/viewmodel/DeactivatePodActionViewModel.kt
index 49d0f2ed19..80296603f2 100644
--- a/omnipod/src/main/java/info/nightscout/androidaps/plugins/pump/omnipod/ui/wizard/viewmodel/DeactivatePodActionViewModel.kt
+++ b/omnipod/src/main/java/info/nightscout/androidaps/plugins/pump/omnipod/ui/wizard/deactivation/viewmodel/DeactivatePodActionViewModel.kt
@@ -1,9 +1,10 @@
-package info.nightscout.androidaps.plugins.pump.omnipod.ui.wizard.viewmodel
+package info.nightscout.androidaps.plugins.pump.omnipod.ui.wizard.deactivation.viewmodel
import info.nightscout.androidaps.data.PumpEnactResult
import info.nightscout.androidaps.interfaces.CommandQueueProvider
import info.nightscout.androidaps.plugins.pump.omnipod.manager.AapsOmnipodManager
import info.nightscout.androidaps.plugins.pump.omnipod.queue.command.CommandDeactivatePod
+import info.nightscout.androidaps.plugins.pump.omnipod.ui.wizard.common.viewmodel.ActionViewModelBase
import info.nightscout.androidaps.queue.Callback
import io.reactivex.subjects.SingleSubject
import javax.inject.Inject
diff --git a/omnipod/src/main/java/info/nightscout/androidaps/plugins/pump/omnipod/ui/wizard/fragment/ChangePodWizardFragmentBase.kt b/omnipod/src/main/java/info/nightscout/androidaps/plugins/pump/omnipod/ui/wizard/fragment/ChangePodWizardFragmentBase.kt
deleted file mode 100644
index 5c5c1befef..0000000000
--- a/omnipod/src/main/java/info/nightscout/androidaps/plugins/pump/omnipod/ui/wizard/fragment/ChangePodWizardFragmentBase.kt
+++ /dev/null
@@ -1,97 +0,0 @@
-package info.nightscout.androidaps.plugins.pump.omnipod.ui.wizard.fragment
-
-import android.content.res.ColorStateList
-import android.os.Bundle
-import android.view.LayoutInflater
-import android.view.View
-import android.view.ViewGroup
-import android.view.ViewStub
-import androidx.annotation.IdRes
-import androidx.annotation.LayoutRes
-import androidx.annotation.StringRes
-import androidx.navigation.fragment.findNavController
-import dagger.android.support.DaggerFragment
-import info.nightscout.androidaps.plugins.pump.omnipod.R
-import info.nightscout.androidaps.plugins.pump.omnipod.ui.wizard.ChangePodWizardActivity
-import kotlinx.android.synthetic.main.omnipod_change_pod_wizard_base_fragment.*
-import kotlinx.android.synthetic.main.omnipod_change_pod_wizard_nav_buttons.*
-import kotlinx.android.synthetic.main.omnipod_change_pod_wizard_progress_indication.*
-import kotlin.math.roundToInt
-
-abstract class ChangePodWizardFragmentBase : DaggerFragment() {
- override fun onCreateView(
- inflater: LayoutInflater,
- container: ViewGroup?,
- savedInstanceState: Bundle?
- ): View {
- val baseView = inflater.inflate(R.layout.omnipod_change_pod_wizard_base_fragment, container, false)
- val contentView = baseView.findViewById(R.id.omnipod_change_pod_wizard_base_fragment_content)
- contentView?.let {
- it.layoutResource = getLayoutId()
- it.inflate()
- }
- return baseView
- }
-
- override fun onViewCreated(view: View, savedInstanceState: Bundle?) {
- super.onViewCreated(view, savedInstanceState)
-
- omnipod_change_pod_wizard_base_fragment_title.setText(getTitleId())
-
- val nextPage = getNextPageActionId()
-
- if (nextPage == null) {
- omnipod_change_pod_wizard_button_next.text = getString(R.string.omnipod_change_pod_wizard_button_finish)
- omnipod_change_pod_wizard_button_next.backgroundTintList = ColorStateList.valueOf(resources.getColor(R.color.review_green, context?.theme))
- }
-
- updateProgressIndication()
-
- omnipod_change_pod_wizard_button_next.setOnClickListener {
- if (nextPage == null) {
- activity?.finish()
- } else {
- findNavController().navigate(nextPage)
- }
- }
-
- omnipod_change_pod_wizard_button_cancel.setOnClickListener {
- (activity as? ChangePodWizardActivity)?.exitActivityAfterConfirmation()
- }
- }
-
- private fun updateProgressIndication() {
- val findNavController = findNavController()
- val graph = findNavController.graph
- val totalFragments =
- when (graph.startDestination) {
- R.id.fillPodInfoFragment -> {
- 8 - 3
- }
-
- R.id.attachPodInfoFragment -> {
- 8 - 5
- }
-
- else -> {
- 8
- }
- }
-
- val currentFragment = getIndex() - (8 - totalFragments)
- val progressPercentage = (currentFragment / totalFragments.toDouble() * 100).roundToInt()
-
- omnipod_change_pod_wizard_progress_indication.progress = progressPercentage
- }
-
- @LayoutRes
- protected abstract fun getLayoutId(): Int
-
- @IdRes
- protected abstract fun getNextPageActionId(): Int?
-
- @StringRes
- protected abstract fun getTitleId(): Int
-
- protected abstract fun getIndex(): Int
-}
\ No newline at end of file
diff --git a/omnipod/src/main/java/info/nightscout/androidaps/plugins/pump/omnipod/ui/wizard/fragment/action/InsertCannulaActionFragment.kt b/omnipod/src/main/java/info/nightscout/androidaps/plugins/pump/omnipod/ui/wizard/fragment/action/InsertCannulaActionFragment.kt
deleted file mode 100644
index ef9d2e5d39..0000000000
--- a/omnipod/src/main/java/info/nightscout/androidaps/plugins/pump/omnipod/ui/wizard/fragment/action/InsertCannulaActionFragment.kt
+++ /dev/null
@@ -1,61 +0,0 @@
-package info.nightscout.androidaps.plugins.pump.omnipod.ui.wizard.fragment.action
-
-import android.os.Bundle
-import android.view.View
-import androidx.annotation.IdRes
-import androidx.annotation.StringRes
-import androidx.fragment.app.viewModels
-import androidx.lifecycle.ViewModelProvider
-import androidx.navigation.fragment.findNavController
-import info.nightscout.androidaps.plugins.pump.omnipod.R
-import info.nightscout.androidaps.plugins.pump.omnipod.dagger.OmnipodPluginQualifier
-import info.nightscout.androidaps.plugins.pump.omnipod.driver.definition.PodProgressStatus
-import info.nightscout.androidaps.plugins.pump.omnipod.driver.manager.PodStateManager
-import info.nightscout.androidaps.plugins.pump.omnipod.ui.wizard.ChangePodWizardActivity
-import info.nightscout.androidaps.plugins.pump.omnipod.ui.wizard.viewmodel.InsertCannulaActionViewModel
-import kotlinx.android.synthetic.main.omnipod_change_pod_wizard_action_page_fragment.*
-import javax.inject.Inject
-
-class InsertCannulaActionFragment : ActionFragmentBase() {
- @Inject
- @OmnipodPluginQualifier
- lateinit var viewModelFactory: ViewModelProvider.Factory
-
- @Inject
- lateinit var podStateManager: PodStateManager
-
- override fun onCreate(savedInstanceState: Bundle?) {
- super.onCreate(savedInstanceState)
-
- val vm: InsertCannulaActionViewModel by viewModels { viewModelFactory }
- this.viewModel = vm
- }
-
- override fun onViewCreated(view: View, savedInstanceState: Bundle?) {
- super.onViewCreated(view, savedInstanceState)
-
- omnipod_change_pod_wizard_button_deactivate_pod.setOnClickListener {
- (activity as? ChangePodWizardActivity)?.setStartDestination(R.id.deactivatePodInfoFragment)
- findNavController().navigate(R.id.deactivatePodInfoFragment)
- }
- }
-
- override fun onActionFailure() {
- if (podStateManager.isPodInitialized && podStateManager.podProgressStatus == PodProgressStatus.ACTIVATION_TIME_EXCEEDED) {
- omnipod_change_pod_wizard_action_error.setText(R.string.omnipod_error_pod_fault_activation_time_exceeded)
- omnipod_change_pod_wizard_button_retry.visibility = View.GONE
- omnipod_change_pod_wizard_button_deactivate_pod.visibility = View.VISIBLE
- }
- }
-
- @StringRes
- override fun getTitleId(): Int = R.string.omnipod_change_pod_wizard_insert_cannula_title
-
- @StringRes
- override fun getTextId(): Int = R.string.omnipod_change_pod_wizard_insert_cannula_text
-
- @IdRes
- override fun getNextPageActionId(): Int = R.id.action_insertCannulaActionFragment_to_PodChangedInfoFragment
-
- override fun getIndex(): Int = 7
-}
\ No newline at end of file
diff --git a/omnipod/src/main/java/info/nightscout/androidaps/plugins/pump/omnipod/ui/wizard/fragment/action/PairAndPrimePodActionFragment.kt b/omnipod/src/main/java/info/nightscout/androidaps/plugins/pump/omnipod/ui/wizard/fragment/action/PairAndPrimePodActionFragment.kt
deleted file mode 100644
index f2054bc7ee..0000000000
--- a/omnipod/src/main/java/info/nightscout/androidaps/plugins/pump/omnipod/ui/wizard/fragment/action/PairAndPrimePodActionFragment.kt
+++ /dev/null
@@ -1,61 +0,0 @@
-package info.nightscout.androidaps.plugins.pump.omnipod.ui.wizard.fragment.action
-
-import android.os.Bundle
-import android.view.View
-import androidx.annotation.IdRes
-import androidx.annotation.StringRes
-import androidx.fragment.app.viewModels
-import androidx.lifecycle.ViewModelProvider
-import androidx.navigation.fragment.findNavController
-import info.nightscout.androidaps.plugins.pump.omnipod.R
-import info.nightscout.androidaps.plugins.pump.omnipod.dagger.OmnipodPluginQualifier
-import info.nightscout.androidaps.plugins.pump.omnipod.driver.definition.PodProgressStatus
-import info.nightscout.androidaps.plugins.pump.omnipod.driver.manager.PodStateManager
-import info.nightscout.androidaps.plugins.pump.omnipod.ui.wizard.ChangePodWizardActivity
-import info.nightscout.androidaps.plugins.pump.omnipod.ui.wizard.viewmodel.PairAndPrimePodActionViewModel
-import kotlinx.android.synthetic.main.omnipod_change_pod_wizard_action_page_fragment.*
-import javax.inject.Inject
-
-class PairAndPrimePodActionFragment : ActionFragmentBase() {
- @Inject
- @OmnipodPluginQualifier
- lateinit var viewModelFactory: ViewModelProvider.Factory
-
- @Inject
- lateinit var podStateManager: PodStateManager
-
- override fun onCreate(savedInstanceState: Bundle?) {
- super.onCreate(savedInstanceState)
-
- val vm: PairAndPrimePodActionViewModel by viewModels { viewModelFactory }
- this.viewModel = vm
- }
-
- override fun onViewCreated(view: View, savedInstanceState: Bundle?) {
- super.onViewCreated(view, savedInstanceState)
-
- omnipod_change_pod_wizard_button_deactivate_pod.setOnClickListener {
- (activity as? ChangePodWizardActivity)?.setStartDestination(R.id.deactivatePodInfoFragment)
- findNavController().navigate(R.id.deactivatePodInfoFragment)
- }
- }
-
- override fun onActionFailure() {
- if (podStateManager.isPodInitialized && podStateManager.podProgressStatus == PodProgressStatus.ACTIVATION_TIME_EXCEEDED) {
- omnipod_change_pod_wizard_action_error.setText(R.string.omnipod_error_pod_fault_activation_time_exceeded)
- omnipod_change_pod_wizard_button_retry.visibility = View.GONE
- omnipod_change_pod_wizard_button_deactivate_pod.visibility = View.VISIBLE
- }
- }
-
- @StringRes
- override fun getTitleId(): Int = R.string.omnipod_change_pod_wizard_activate_pod_title
-
- @StringRes
- override fun getTextId(): Int = R.string.omnipod_change_pod_wizard_activate_pod_text
-
- @IdRes
- override fun getNextPageActionId(): Int = R.id.action_pairAndPrimePodActionFragment_to_attachPodInfoFragment
-
- override fun getIndex(): Int = 5
-}
\ No newline at end of file
diff --git a/omnipod/src/main/java/info/nightscout/androidaps/plugins/pump/omnipod/ui/wizard/fragment/info/FillPodInfoFragment.kt b/omnipod/src/main/java/info/nightscout/androidaps/plugins/pump/omnipod/ui/wizard/fragment/info/FillPodInfoFragment.kt
deleted file mode 100644
index 1c7e2f24d8..0000000000
--- a/omnipod/src/main/java/info/nightscout/androidaps/plugins/pump/omnipod/ui/wizard/fragment/info/FillPodInfoFragment.kt
+++ /dev/null
@@ -1,18 +0,0 @@
-package info.nightscout.androidaps.plugins.pump.omnipod.ui.wizard.fragment.info
-
-import androidx.annotation.IdRes
-import androidx.annotation.StringRes
-import info.nightscout.androidaps.plugins.pump.omnipod.R
-
-class FillPodInfoFragment : InfoFragmentBase() {
- @StringRes
- override fun getTitleId(): Int = R.string.omnipod_change_pod_wizard_fill_pod_title
-
- @StringRes
- override fun getTextId(): Int = R.string.omnipod_change_pod_wizard_fill_pod_text
-
- @IdRes
- override fun getNextPageActionId(): Int = R.id.action_fillPodInfoFragment_to_pairAndPrimePodActionFragment
-
- override fun getIndex(): Int = 4
-}
\ No newline at end of file
diff --git a/omnipod/src/main/java/info/nightscout/androidaps/plugins/pump/omnipod/ui/wizard/fragment/info/PodChangedInfoFragment.kt b/omnipod/src/main/java/info/nightscout/androidaps/plugins/pump/omnipod/ui/wizard/fragment/info/PodChangedInfoFragment.kt
deleted file mode 100644
index d0f6cf0561..0000000000
--- a/omnipod/src/main/java/info/nightscout/androidaps/plugins/pump/omnipod/ui/wizard/fragment/info/PodChangedInfoFragment.kt
+++ /dev/null
@@ -1,18 +0,0 @@
-package info.nightscout.androidaps.plugins.pump.omnipod.ui.wizard.fragment.info
-
-import androidx.annotation.IdRes
-import androidx.annotation.StringRes
-import info.nightscout.androidaps.plugins.pump.omnipod.R
-
-class PodChangedInfoFragment : InfoFragmentBase() {
- @StringRes
- override fun getTitleId(): Int = R.string.omnipod_change_pod_wizard_pod_changed_title
-
- @StringRes
- override fun getTextId(): Int = R.string.omnipod_change_pod_wizard_pod_changed_text
-
- @IdRes
- override fun getNextPageActionId(): Int? = null
-
- override fun getIndex(): Int = 8
-}
\ No newline at end of file
diff --git a/omnipod/src/main/java/info/nightscout/androidaps/plugins/pump/omnipod/ui/wizard/fragment/info/PodDeactivatedInfoFragment.kt b/omnipod/src/main/java/info/nightscout/androidaps/plugins/pump/omnipod/ui/wizard/fragment/info/PodDeactivatedInfoFragment.kt
deleted file mode 100644
index 5b3aef7870..0000000000
--- a/omnipod/src/main/java/info/nightscout/androidaps/plugins/pump/omnipod/ui/wizard/fragment/info/PodDeactivatedInfoFragment.kt
+++ /dev/null
@@ -1,18 +0,0 @@
-package info.nightscout.androidaps.plugins.pump.omnipod.ui.wizard.fragment.info
-
-import androidx.annotation.IdRes
-import androidx.annotation.StringRes
-import info.nightscout.androidaps.plugins.pump.omnipod.R
-
-class PodDeactivatedInfoFragment : InfoFragmentBase() {
- @StringRes
- override fun getTitleId(): Int = R.string.omnipod_change_pod_wizard_pod_deactivated_title
-
- @StringRes
- override fun getTextId(): Int = R.string.omnipod_change_pod_wizard_pod_deactivated_text
-
- @IdRes
- override fun getNextPageActionId(): Int = R.id.action_podDeactivatedInfoFragment_to_fillPodInfoFragment
-
- override fun getIndex(): Int = 3
-}
\ No newline at end of file
diff --git a/omnipod/src/main/java/info/nightscout/androidaps/plugins/pump/omnipod/ui/wizard/fragment/info/PodDiscardedInfoFragment.kt b/omnipod/src/main/java/info/nightscout/androidaps/plugins/pump/omnipod/ui/wizard/fragment/info/PodDiscardedInfoFragment.kt
deleted file mode 100644
index 1e295f5331..0000000000
--- a/omnipod/src/main/java/info/nightscout/androidaps/plugins/pump/omnipod/ui/wizard/fragment/info/PodDiscardedInfoFragment.kt
+++ /dev/null
@@ -1,18 +0,0 @@
-package info.nightscout.androidaps.plugins.pump.omnipod.ui.wizard.fragment.info
-
-import androidx.annotation.IdRes
-import androidx.annotation.StringRes
-import info.nightscout.androidaps.plugins.pump.omnipod.R
-
-class PodDiscardedInfoFragment : InfoFragmentBase() {
- @StringRes
- override fun getTitleId(): Int = R.string.omnipod_change_pod_wizard_pod_discarded_title
-
- @StringRes
- override fun getTextId(): Int = R.string.omnipod_change_pod_wizard_pod_discarded_text
-
- @IdRes
- override fun getNextPageActionId(): Int = R.id.action_podDiscardedInfoFragment_to_fillPodInfoFragment
-
- override fun getIndex(): Int = 3
-}
\ No newline at end of file
diff --git a/omnipod/src/main/res/layout/omnipod_change_pod_wizard_activity.xml b/omnipod/src/main/res/layout/omnipod_pod_activation_wizard_activity.xml
similarity index 100%
rename from omnipod/src/main/res/layout/omnipod_change_pod_wizard_activity.xml
rename to omnipod/src/main/res/layout/omnipod_pod_activation_wizard_activity.xml
diff --git a/omnipod/src/main/res/layout/omnipod_pod_deactivation_wizard_activity.xml b/omnipod/src/main/res/layout/omnipod_pod_deactivation_wizard_activity.xml
new file mode 100644
index 0000000000..8104ed2ec4
--- /dev/null
+++ b/omnipod/src/main/res/layout/omnipod_pod_deactivation_wizard_activity.xml
@@ -0,0 +1,15 @@
+
+
+
+
+
\ No newline at end of file
diff --git a/omnipod/src/main/res/layout/omnipod_pod_management.xml b/omnipod/src/main/res/layout/omnipod_pod_management.xml
index f76b7ed544..bc088db71f 100644
--- a/omnipod/src/main/res/layout/omnipod_pod_management.xml
+++ b/omnipod/src/main/res/layout/omnipod_pod_management.xml
@@ -15,11 +15,10 @@
-
+ android:drawableTop="@drawable/ic_actions_temptarget"
+ android:text="@string/omnipod_pod_management_button_deactivate_pod"
+ android:textAllCaps="false" />
-
-
+ android:layout_marginBottom="@dimen/omnipod_wizard_vertical_spacing"
+ android:textAppearance="@style/OmnipodWizardText" />
\ No newline at end of file
diff --git a/omnipod/src/main/res/layout/omnipod_change_pod_wizard_base_fragment.xml b/omnipod/src/main/res/layout/omnipod_wizard_base_fragment.xml
similarity index 59%
rename from omnipod/src/main/res/layout/omnipod_change_pod_wizard_base_fragment.xml
rename to omnipod/src/main/res/layout/omnipod_wizard_base_fragment.xml
index a1e381362b..f0e9649066 100644
--- a/omnipod/src/main/res/layout/omnipod_change_pod_wizard_base_fragment.xml
+++ b/omnipod/src/main/res/layout/omnipod_wizard_base_fragment.xml
@@ -5,26 +5,26 @@
android:layout_height="match_parent"
android:orientation="vertical">
-
+
+ android:textAppearance="@style/OmnipodWizardTitle" />
-
+
\ No newline at end of file
diff --git a/omnipod/src/main/res/layout/omnipod_change_pod_wizard_info_page_fragment.xml b/omnipod/src/main/res/layout/omnipod_wizard_info_page_fragment.xml
similarity index 72%
rename from omnipod/src/main/res/layout/omnipod_change_pod_wizard_info_page_fragment.xml
rename to omnipod/src/main/res/layout/omnipod_wizard_info_page_fragment.xml
index 2d6623934e..9a6b30a397 100644
--- a/omnipod/src/main/res/layout/omnipod_change_pod_wizard_info_page_fragment.xml
+++ b/omnipod/src/main/res/layout/omnipod_wizard_info_page_fragment.xml
@@ -5,8 +5,8 @@
android:orientation="vertical">
+ android:textAppearance="@style/OmnipodWizardText" />
\ No newline at end of file
diff --git a/omnipod/src/main/res/layout/omnipod_change_pod_wizard_nav_buttons.xml b/omnipod/src/main/res/layout/omnipod_wizard_nav_buttons.xml
similarity index 64%
rename from omnipod/src/main/res/layout/omnipod_change_pod_wizard_nav_buttons.xml
rename to omnipod/src/main/res/layout/omnipod_wizard_nav_buttons.xml
index 8aa86adc7e..abf9a835e2 100644
--- a/omnipod/src/main/res/layout/omnipod_change_pod_wizard_nav_buttons.xml
+++ b/omnipod/src/main/res/layout/omnipod_wizard_nav_buttons.xml
@@ -5,16 +5,16 @@
android:orientation="horizontal">
+ android:text="@string/omnipod_wizard_button_cancel" />
+ android:text="@string/omnipod_wizard_button_next" />
\ No newline at end of file
diff --git a/omnipod/src/main/res/layout/omnipod_change_pod_wizard_progress_indication.xml b/omnipod/src/main/res/layout/omnipod_wizard_progress_indication.xml
similarity index 78%
rename from omnipod/src/main/res/layout/omnipod_change_pod_wizard_progress_indication.xml
rename to omnipod/src/main/res/layout/omnipod_wizard_progress_indication.xml
index c24eaa41eb..983a0bb4ea 100644
--- a/omnipod/src/main/res/layout/omnipod_change_pod_wizard_progress_indication.xml
+++ b/omnipod/src/main/res/layout/omnipod_wizard_progress_indication.xml
@@ -5,12 +5,12 @@
android:orientation="horizontal">
\ No newline at end of file
diff --git a/omnipod/src/main/res/navigation/omnipod_change_pod_wizard_navigation_graph.xml b/omnipod/src/main/res/navigation/omnipod_change_pod_wizard_navigation_graph.xml
deleted file mode 100644
index e7defe9c50..0000000000
--- a/omnipod/src/main/res/navigation/omnipod_change_pod_wizard_navigation_graph.xml
+++ /dev/null
@@ -1,82 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
\ No newline at end of file
diff --git a/omnipod/src/main/res/navigation/omnipod_pod_activation_wizard_navigation_graph.xml b/omnipod/src/main/res/navigation/omnipod_pod_activation_wizard_navigation_graph.xml
new file mode 100644
index 0000000000..b5ad757c49
--- /dev/null
+++ b/omnipod/src/main/res/navigation/omnipod_pod_activation_wizard_navigation_graph.xml
@@ -0,0 +1,41 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/omnipod/src/main/res/navigation/omnipod_pod_deactivation_wizard_navigation_graph.xml b/omnipod/src/main/res/navigation/omnipod_pod_deactivation_wizard_navigation_graph.xml
new file mode 100644
index 0000000000..d1c431652c
--- /dev/null
+++ b/omnipod/src/main/res/navigation/omnipod_pod_deactivation_wizard_navigation_graph.xml
@@ -0,0 +1,32 @@
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/omnipod/src/main/res/values-bg-rBG/strings.xml b/omnipod/src/main/res/values-bg-rBG/strings.xml
index c5b7385578..7456f0f6f5 100644
--- a/omnipod/src/main/res/values-bg-rBG/strings.xml
+++ b/omnipod/src/main/res/values-bg-rBG/strings.xml
@@ -58,21 +58,21 @@
Спиране на доставката на инсулинПодновяване на доставкатаНепознат запис
- Напълни Pod
- \nНапълнете с достатъчно инсулин за 3 дни.\n\nИзчакайте два сигнала от Pod по време на процеса на зареждане. Те показват, че е вмъкнат минималният размер от 85U. Уверете се, че сте изпразнил напълно спринцовката, дори след като сте чули двата сигнала.\n\nСлед пълнене на Pod, моля натиснете Следващ.\n\nЗабележка: не вадете капачката на капсулата на Podв този момент.
- Пълнене
- Опитвам се да се сдвоя с Pod.\n\nКогато всички елементи са проверени, можете да натиснете Следващ.\n\nЗабележка: задръжте Pod много близо до RileyLink в този момент.
- Прикрепете Pod
- \nПодгответе мястото за инфузия. Отстранете капачката на Pod и лепенката и прикрепете капсулата към мястото за инфузия.\n\nАко канюла стърчи, моля натиснете Отказ и изхвърлете вашия Pod.\n\nПрес Следваща да се вмъкне канюлата и да започне базалната доставка.
- Вмъкване на канюла
- Опитвам се да определя първоначалния базален график и да вмъкна канюлата.\n\nКогато всички елементи са проверени, можете да натиснете Следващ.
- Информация за Pod
- \Podе активна.\n\nВашият базален график е програмиран и канюлата вмъкната.\n\nМоля, проверете дали канюлата е поставена правилно или заменете Pod, ако чувствате, че не е.
- Деактивирай Pod
- \nНатиснете Следващ , за да деактивирате Pod.\n\nЗабележка: Това ще спре всички доставки на инсулин и деактивира Pod.
- Деактивиране на Pod
- Деактивиране на Pod.\n\nКогато всички елементи са проверени, можете да натиснете Следващ.\n\nЗабележка: Ако деактивирането непрекъснато се проваля, моля натиснете Отказ и използвайте опция Нулирай Pod , за да възстановите състоянието на Pod.
- Pod изключен.\n\nмоля, извадете Pod от тялото си и го хвърли.
+ Напълни Pod
+ \nНапълнете с достатъчно инсулин за 3 дни.\n\nИзчакайте два сигнала от Pod по време на процеса на зареждане. Те показват, че е вмъкнат минималният размер от 85U. Уверете се, че сте изпразнил напълно спринцовката, дори след като сте чули двата сигнала.\n\nСлед пълнене на Pod, моля натиснете Следващ.\n\nЗабележка: не вадете капачката на капсулата на Podв този момент.
+ Пълнене
+ Опитвам се да се сдвоя с Pod.\n\nКогато всички елементи са проверени, можете да натиснете Следващ.\n\nЗабележка: задръжте Pod много близо до RileyLink в този момент.
+ Прикрепете Pod
+ \nПодгответе мястото за инфузия. Отстранете капачката на Pod и лепенката и прикрепете капсулата към мястото за инфузия.\n\nАко канюла стърчи, моля натиснете Отказ и изхвърлете вашия Pod.\n\nПрес Следваща да се вмъкне канюлата и да започне базалната доставка.
+ Вмъкване на канюла
+ Опитвам се да определя първоначалния базален график и да вмъкна канюлата.\n\nКогато всички елементи са проверени, можете да натиснете Следващ.
+ Информация за Pod
+ \Podе активна.\n\nВашият базален график е програмиран и канюлата вмъкната.\n\nМоля, проверете дали канюлата е поставена правилно или заменете Pod, ако чувствате, че не е.
+ Деактивирай Pod
+ \nНатиснете Следващ , за да деактивирате Pod.\n\nЗабележка: Това ще спре всички доставки на инсулин и деактивира Pod.
+ Деактивиране на Pod
+ Деактивиране на Pod.\n\nКогато всички елементи са проверени, можете да натиснете Следващ.\n\nЗабележка: Ако деактивирането непрекъснато се проваля, моля натиснете Отказ и използвайте опция Нулирай Pod , за да възстановите състоянието на Pod.
+ Pod изключен.\n\nмоля, извадете Pod от тялото си и го хвърли.Край на напомняне за сдвояванеКрай на напомнянето за настройка
@@ -97,7 +97,7 @@
преди %sИзчакване за връзка...преди по-малко от минута
- Сдвояване и пълнене
+ Сдвояване и пълненеЗапълнете канюлата и настройте базалния профилПоставете фалшив временен базал, защото Pod е спряноАнулират фалшив временен базал, който е създаден, защото Pod е спряно
@@ -106,7 +106,7 @@
ДругоИзвестияЗвук за потвърждение
- Следващ
+ СледващОписаниеИзточникДата
diff --git a/omnipod/src/main/res/values-cs-rCZ/strings.xml b/omnipod/src/main/res/values-cs-rCZ/strings.xml
index 0072210519..75902f1ef5 100644
--- a/omnipod/src/main/res/values-cs-rCZ/strings.xml
+++ b/omnipod/src/main/res/values-cs-rCZ/strings.xml
@@ -58,18 +58,18 @@
Pozastavit dodávání inzulínuObnovit dodávání inzulínuNeznámá položka
- Naplňte Pod
- \nNaplňte nový Pod dostatkem inzulínu na 3 dny.\n\nSledujte dvě pípnutí z Podu během procesu plnění. Tyto ukazují, že minimální množství 85U bylo naplněno. Ujistěte se, že stříkačka je zcela vyprázdněná a to i po vyslechnutí dvou pípnutí.\n\nPo naplnění Podu, prosím, stiskněte Další.\n\nPoznámka: prozatím nesundavejte kryt jehly.\nPoznámka:prosím umístěte RileyLink ve svislé pozici blízko Podu.
- Plnění
- Nasaďte Pod
- \nPřipravte infuzní místo. Odstraňte krytku jehly a náplasti a nalepte Pod.\n\nPokud se kanyla odlepí, stiskněte Zrušit a zahoďte Pod.\n\nStiskněte Další pro vložení kanyly a spuštění bazálů.
- Vkládání kanyly
- Snažím se nastavit počáteční základní bazální plán a vložit kanylu.\n\nPři zaškrtnutí všech položek můžete stisknout tlačítko Další.
- \nPod je nyní aktivní.\n\nVáš bazál byl naprogramován a kanyla byla vložena.\n\nOvěřte, prosím, že kanyla byla vložena správně a případně vyměňte Pod.
- Deaktivovat Pod
- \nStiskněte Další pro deaktivaci Podu.\n\nPoznámka: Zastavíte veškerý výdej inzulínu a deaktivujete Pod.
- Deaktivace Podu
- Pod deaktivován.\n\nOdstraňte Pod z těla a znehodnoťte jej.
+ Naplňte Pod
+ \nNaplňte nový Pod dostatkem inzulínu na 3 dny.\n\nSledujte dvě pípnutí z Podu během procesu plnění. Tyto ukazují, že minimální množství 85U bylo naplněno. Ujistěte se, že stříkačka je zcela vyprázdněná a to i po vyslechnutí dvou pípnutí.\n\nPo naplnění Podu, prosím, stiskněte Další.\n\nPoznámka: prozatím nesundavejte kryt jehly.\nPoznámka:prosím umístěte RileyLink ve svislé pozici blízko Podu.
+ Plnění
+ Nasaďte Pod
+ \nPřipravte infuzní místo. Odstraňte krytku jehly a náplasti a nalepte Pod.\n\nPokud se kanyla odlepí, stiskněte Zrušit a zahoďte Pod.\n\nStiskněte Další pro vložení kanyly a spuštění bazálů.
+ Vkládání kanyly
+ Snažím se nastavit počáteční základní bazální plán a vložit kanylu.\n\nPři zaškrtnutí všech položek můžete stisknout tlačítko Další.
+ \nPod je nyní aktivní.\n\nVáš bazál byl naprogramován a kanyla byla vložena.\n\nOvěřte, prosím, že kanyla byla vložena správně a případně vyměňte Pod.
+ Deaktivovat Pod
+ \nStiskněte Další pro deaktivaci Podu.\n\nPoznámka: Zastavíte veškerý výdej inzulínu a deaktivujete Pod.
+ Deaktivace Podu
+ Pod deaktivován.\n\nOdstraňte Pod z těla a znehodnoťte jej.Upomínka dokončení párováníUpomínka dokončení nastavení
@@ -87,7 +87,7 @@
před %1$sČekání na připojení RileyLink...Před méně než minutou
- Spárovat a naplnit
+ Spárovat a naplnitNaplnit kanylu a nastavit bazální profilNastavit falešný dočasný bazál, protože Pod je pozastavenZrušit falešný dočasný bazál který byl vytvořen, protože Pod byl pozastaven
@@ -96,7 +96,7 @@
JinéVarováníPotvrzovací pípnutí
- Další
+ DalšíPopisZdrojDatum
diff --git a/omnipod/src/main/res/values-de-rDE/strings.xml b/omnipod/src/main/res/values-de-rDE/strings.xml
index a62fecafbc..f24e56e7e1 100644
--- a/omnipod/src/main/res/values-de-rDE/strings.xml
+++ b/omnipod/src/main/res/values-de-rDE/strings.xml
@@ -74,17 +74,17 @@
Unbekannte Eingabe%1$.2f IE%1$.2f IE, CH=%2$.1f g
- Befülle den Pod
- Befüllen
- Befestige den Pod
- \nBereite die Infusionsstelle vor. Entferne den Nadelschutz des Pods und die Schutzfolie über dem Kleber. Klebe dann den Pod an die gewünschte Körperstelle.\n\nFalls die Kanüle herausragt, klicke Abbrechen und verwirf den Pod.\n\nKlicke Weiter; um die Kanüle zu setzen und die Insulinabgabe zu beginnen.
- Kanüle setzen
- Erste Basalrate und Kanüle werden nun gesetzt.\n\nWenn alle Häkchen gesetzt sind, kannst Du Weiter klicken.
- \nDer Pod ist jetzt aktiv.\n\nDeine Basalrate ist programmiert und die Kanüle wurde gesetzt.\n\nBitte überprüfe, ob die Kanüle korrekt gesetzt wurde und ersetze den Pod, wenn Du das Gefühl hast, dass dies nicht erfolgreich war.
- Pod deaktivieren
- \nDrücke Weiter um den Pod zu deaktivieren.\n\nHinweis: Dies unterbricht die gesamte Insulinabgabe und deaktiviert den Pod.
- Deaktiviere den Pod
- Pod deaktiviert.\n\nBitte entferne den Pod von Deinem Körper und entsorge ihn.
+ Befülle den Pod
+ Befüllen
+ Befestige den Pod
+ \nBereite die Infusionsstelle vor. Entferne den Nadelschutz des Pods und die Schutzfolie über dem Kleber. Klebe dann den Pod an die gewünschte Körperstelle.\n\nFalls die Kanüle herausragt, klicke Abbrechen und verwirf den Pod.\n\nKlicke Weiter; um die Kanüle zu setzen und die Insulinabgabe zu beginnen.
+ Kanüle setzen
+ Erste Basalrate und Kanüle werden nun gesetzt.\n\nWenn alle Häkchen gesetzt sind, kannst Du Weiter klicken.
+ \nDer Pod ist jetzt aktiv.\n\nDeine Basalrate ist programmiert und die Kanüle wurde gesetzt.\n\nBitte überprüfe, ob die Kanüle korrekt gesetzt wurde und ersetze den Pod, wenn Du das Gefühl hast, dass dies nicht erfolgreich war.
+ Pod deaktivieren
+ \nDrücke Weiter um den Pod zu deaktivieren.\n\nHinweis: Dies unterbricht die gesamte Insulinabgabe und deaktiviert den Pod.
+ Deaktiviere den Pod
+ Pod deaktiviert.\n\nBitte entferne den Pod von Deinem Körper und entsorge ihn.Erinnerung Kopplung beendetErinnerung Setup beendet
@@ -98,7 +98,7 @@
UnterbrechungenRileyLinkAndere
- Weiter
+ WeiterBeschreibungDatum
diff --git a/omnipod/src/main/res/values-es-rES/strings.xml b/omnipod/src/main/res/values-es-rES/strings.xml
index ac62ba0e56..7e14a40df8 100644
--- a/omnipod/src/main/res/values-es-rES/strings.xml
+++ b/omnipod/src/main/res/values-es-rES/strings.xml
@@ -12,16 +12,16 @@
Desactivar Pod
- Llenar el Pod
- Cebado
- Adherir el Pod
- \nPreparar el sitio de infusión. Retire el capuchón de la aguja del Pod y el adhesivo y aplique el Pod al sitio de perfusión.\n\nSi la cánula se queda fuera, por favor presione Cancel y descarte su Pod.\n\nPress Next para insertar la cánula y comenzar la entrega basal.
- Insertar cánula
- Intentando establecer la programación basal inicial e insertar la cánula.\n\nCuando todos los elementos están marcados, puede pulsar Siguiente.
- \nEl Pod ahora está activo.\n\nSu horario basal ha sido programado y la cánula ha sido insertada.\n\nPor favor, verifique que la cánula ha sido insertada correctamente y reemplace su Pod si usted siente que no lo ha hecho.
- \nPulsa Siguiente para desactivar el Pod.\n\nNota: Esto suspenderá toda la entrega insulina y desactivará el Pod.
- Desactivando el Pod
- Pod desactivado.\n\nPor favor, retire el Pod de su cuerpo y desecharlo.
+ Llenar el Pod
+ Cebado
+ Adherir el Pod
+ \nPreparar el sitio de infusión. Retire el capuchón de la aguja del Pod y el adhesivo y aplique el Pod al sitio de perfusión.\n\nSi la cánula se queda fuera, por favor presione Cancel y descarte su Pod.\n\nPress Next para insertar la cánula y comenzar la entrega basal.
+ Insertar cánula
+ Intentando establecer la programación basal inicial e insertar la cánula.\n\nCuando todos los elementos están marcados, puede pulsar Siguiente.
+ \nEl Pod ahora está activo.\n\nSu horario basal ha sido programado y la cánula ha sido insertada.\n\nPor favor, verifique que la cánula ha sido insertada correctamente y reemplace su Pod si usted siente que no lo ha hecho.
+ \nPulsa Siguiente para desactivar el Pod.\n\nNota: Esto suspenderá toda la entrega insulina y desactivará el Pod.
+ Desactivando el Pod
+ Pod desactivado.\n\nPor favor, retire el Pod de su cuerpo y desecharlo.Recordatorio de configuración finalizadoEl apagado es inminente
diff --git a/omnipod/src/main/res/values-fr-rFR/strings.xml b/omnipod/src/main/res/values-fr-rFR/strings.xml
index 19370889a2..162ee7b950 100644
--- a/omnipod/src/main/res/values-fr-rFR/strings.xml
+++ b/omnipod/src/main/res/values-fr-rFR/strings.xml
@@ -58,21 +58,21 @@
Suspendre l\'injectionPousuivre l\'injectionEntrée inconnue
- Remplir le Pod
- \nRemplir le nouveau Pod avec suffisamment d\'insuline pendant 3 jours.\n\nÉcoutez les deux bips du Pod pendant le processus de remplissage. Ils indiquent que la quantité minimale de 85U a été ajouté. Assurez-vous de vider complètement la seringue de remplissage, même après avoir entendu les deux bips.\n\nAprès avoir rempli le Pod, veuillez appuyer sur Suivant.\n\nRemarque : Ne retirez pas la protection de l\'aiguille du Pod pour le moment.\nRemarque :Veuillez placer le RileyLink en position verticale et placez le Pod quelques centimètres à côté.
- Amorçage
- Tentative d\'appairage et d\'amorçage du nouveau Pod.\n\nQuand tous les items sont cochées, appuyez sur Suivant.\n\nRemarque : Veuillez placer le RileyLink en position verticale et placez le Pod à quelques centimètres de lui.
- Collez le Pod
- \nPréparez le site d\'injection. Enlevez la protection de l\'aiguille et le support adhésif et collez le Pod sur le site d\'injection.\n\nSi la canule se colle, appuyez sur Annuler et jetez votre Pod.\n\nAppuyez sur Suivant pour insérer la canule et démarrer l\'injection de la basal.
- Insertion canule
- Tentative de définir le schéma de basal et d\'insertion de la canule.\n\nQuand tous les items sont cochés, appuyez sur Suivant.
- Infos Pod
- \nLe Pod est maintenant actif.\n\nVos débits de basal ont été programmés et la canule a été insérée.\n\nVeuillez verifier que la canule a été insérée correctement et remplacez votre Pod si vous pensez que ce n\'est pas le cas.
- Désactiver Pod
- \nAppuyez sur Suivant pour désactiver le Pod.\n\nRemarque : Cela suspendra l\'injection de l\'insuline et désactivera le Pod.
- Désactivation du Pod
- Désactivation du Pod.\n\nQuand tous les items sont cochés, appuyez sur Suivant.\n\nRemarque : Si la désactivation échoue en permanence, appuyez sur Annuler et utilisez l\'option Réinit. Pod pour réinitialiser l\'état du Pod.
- Pod désactivé.\n\nVeuillez enlever le Pod de votre corps et le jeter.
+ Remplir le Pod
+ \nRemplir le nouveau Pod avec suffisamment d\'insuline pendant 3 jours.\n\nÉcoutez les deux bips du Pod pendant le processus de remplissage. Ils indiquent que la quantité minimale de 85U a été ajouté. Assurez-vous de vider complètement la seringue de remplissage, même après avoir entendu les deux bips.\n\nAprès avoir rempli le Pod, veuillez appuyer sur Suivant.\n\nRemarque : Ne retirez pas la protection de l\'aiguille du Pod pour le moment.\nRemarque :Veuillez placer le RileyLink en position verticale et placez le Pod quelques centimètres à côté.
+ Amorçage
+ Tentative d\'appairage et d\'amorçage du nouveau Pod.\n\nQuand tous les items sont cochées, appuyez sur Suivant.\n\nRemarque : Veuillez placer le RileyLink en position verticale et placez le Pod à quelques centimètres de lui.
+ Collez le Pod
+ \nPréparez le site d\'injection. Enlevez la protection de l\'aiguille et le support adhésif et collez le Pod sur le site d\'injection.\n\nSi la canule se colle, appuyez sur Annuler et jetez votre Pod.\n\nAppuyez sur Suivant pour insérer la canule et démarrer l\'injection de la basal.
+ Insertion canule
+ Tentative de définir le schéma de basal et d\'insertion de la canule.\n\nQuand tous les items sont cochés, appuyez sur Suivant.
+ Infos Pod
+ \nLe Pod est maintenant actif.\n\nVos débits de basal ont été programmés et la canule a été insérée.\n\nVeuillez verifier que la canule a été insérée correctement et remplacez votre Pod si vous pensez que ce n\'est pas le cas.
+ Désactiver Pod
+ \nAppuyez sur Suivant pour désactiver le Pod.\n\nRemarque : Cela suspendra l\'injection de l\'insuline et désactivera le Pod.
+ Désactivation du Pod
+ Désactivation du Pod.\n\nQuand tous les items sont cochés, appuyez sur Suivant.\n\nRemarque : Si la désactivation échoue en permanence, appuyez sur Annuler et utilisez l\'option Réinit. Pod pour réinitialiser l\'état du Pod.
+ Pod désactivé.\n\nVeuillez enlever le Pod de votre corps et le jeter.Rappel fin d\'appairageRappel fin de configuration
@@ -97,7 +97,7 @@
il y a %1$sEn attente de connexion RileyLink ...Il y a moins d\'une minute
- Appairer et amorcer
+ Appairer et amorcerRemplir la canule et définir le profil de basalDéfinir un faux débit de basal temporaire car le Pod est suspenduAnnuler le faux débit de basal temporaire créé à cause du Pod suspendu
@@ -106,7 +106,7 @@
AutresAlertesBips de confirmation
- Suivant
+ SuivantDescriptionSourceDate
diff --git a/omnipod/src/main/res/values-it-rIT/strings.xml b/omnipod/src/main/res/values-it-rIT/strings.xml
index 939361fe40..d64a530257 100644
--- a/omnipod/src/main/res/values-it-rIT/strings.xml
+++ b/omnipod/src/main/res/values-it-rIT/strings.xml
@@ -58,21 +58,21 @@
Sospendi erogazioneRiprendi erogazioneInserimento sconosciuto
- Riempi il pod
- \nRiempi il nuovo pod con abbastanza insulina per 3 giorni.\n\nResta in ascolto di due bip dal pod durante il processo di riempimento. Questi indicano che è stata inserita la quantità minima di 85U. Assicurati di svuotare completamente la siringa di riempimento, anche dopo aver sentito i due segnali acustici.\n\nDopo il riempimento del pod, premi Avanti.\n\nNota: non rimuovere la protezione dell\'ago del pod in questo momento.\nNota: colloca il RileyLink in posizione verticale e il pod a pochi centimetri di distanza.
- Caricamento
- Prova associazione nuovo pod e caricamento.\n\nQuando tutti gli elementi sono stati controllati, puoi premere Avanti.\n\nNota: colloca il RileyLink in posizione verticale e il pod a pochi centimetri di distanza.
- Attacca il pod
- \nPrepara il sito di infusione. Rimuovi la protezione dell\'ago del pod e il supporto adesivo e attacca il pod al sito di infusione.\n\nSe la cannula fuoriesce premi Annulla e cambia pod.\n\nPremi Avanti per inserire la cannula e iniziare l\'erogazione della basale.
- Inserimento cannula
- Prova impostazione piano basale iniziale e inserimento cannula.\n\nQuando tutti gli elementi sono stati controllati, puoi premere Avanti.
- Info pod
- \nIl pod è adesso attivo.\n\nIl tuo piano basale è stato programmato e la cannula è stata inserita.\n\nVerifica che la cannula sia stata inserita correttamente e sostituisci il tuo pod se avverti il contrario.
- Disattiva pod
- \nPremi Avanti per disattivare il pod.\n\nNota: Questo sospenderà tutta l\'erogazione di insulina e disattiverà il pod.
- Disattivazione del pod
- Disattivazione del pod.\n\nQuando tutti gli elementi sono stati controllati, puoi premere Avanti.\n\nNota: se la disattivazione fallisce di continuo, premi Annulla e usa l\'opzione Scarta pod per resettare forzatamente lo stato del pod.
- Pod disattivato.\n\nRimuovi il pod dal tuo corpo e gettalo.
+ Riempi il pod
+ \nRiempi il nuovo pod con abbastanza insulina per 3 giorni.\n\nResta in ascolto di due bip dal pod durante il processo di riempimento. Questi indicano che è stata inserita la quantità minima di 85U. Assicurati di svuotare completamente la siringa di riempimento, anche dopo aver sentito i due segnali acustici.\n\nDopo il riempimento del pod, premi Avanti.\n\nNota: non rimuovere la protezione dell\'ago del pod in questo momento.\nNota: colloca il RileyLink in posizione verticale e il pod a pochi centimetri di distanza.
+ Caricamento
+ Prova associazione nuovo pod e caricamento.\n\nQuando tutti gli elementi sono stati controllati, puoi premere Avanti.\n\nNota: colloca il RileyLink in posizione verticale e il pod a pochi centimetri di distanza.
+ Attacca il pod
+ \nPrepara il sito di infusione. Rimuovi la protezione dell\'ago del pod e il supporto adesivo e attacca il pod al sito di infusione.\n\nSe la cannula fuoriesce premi Annulla e cambia pod.\n\nPremi Avanti per inserire la cannula e iniziare l\'erogazione della basale.
+ Inserimento cannula
+ Prova impostazione piano basale iniziale e inserimento cannula.\n\nQuando tutti gli elementi sono stati controllati, puoi premere Avanti.
+ Info pod
+ \nIl pod è adesso attivo.\n\nIl tuo piano basale è stato programmato e la cannula è stata inserita.\n\nVerifica che la cannula sia stata inserita correttamente e sostituisci il tuo pod se avverti il contrario.
+ Disattiva pod
+ \nPremi Avanti per disattivare il pod.\n\nNota: Questo sospenderà tutta l\'erogazione di insulina e disattiverà il pod.
+ Disattivazione del pod
+ Disattivazione del pod.\n\nQuando tutti gli elementi sono stati controllati, puoi premere Avanti.\n\nNota: se la disattivazione fallisce di continuo, premi Annulla e usa l\'opzione Scarta pod per resettare forzatamente lo stato del pod.
+ Pod disattivato.\n\nRimuovi il pod dal tuo corpo e gettalo.Fine promemoria associazioneFine promemoria configurazione
@@ -97,7 +97,7 @@
%1$s faAttesa connessione RileyLink...Meno di un minuto fa
- Associa e carica
+ Associa e caricaRiempi cannula e imposta profilo basaleImposta basale temporanea fittizia perché il pod è sospesoCancella basale temporanea fittizia creata perché il pod era sospeso
@@ -106,7 +106,7 @@
AltroAvvisiBeep di conferma
- Avanti
+ AvantiDescrizioneFonteData
diff --git a/omnipod/src/main/res/values-lt-rLT/strings.xml b/omnipod/src/main/res/values-lt-rLT/strings.xml
index 1a8f183c10..66094c19c7 100644
--- a/omnipod/src/main/res/values-lt-rLT/strings.xml
+++ b/omnipod/src/main/res/values-lt-rLT/strings.xml
@@ -19,16 +19,16 @@
Išjungti POD
- Užpildyti POD
- Užpildymas
- Prijunkite POD
- \nParuoškite infuzijos vietą. Nuimkite adatos apsauginį dangtelį, pleistro apsaugą ir užklijuokite POD ant infuzijos vietos.\n\nJei kaniulė atšoks, paspauskite Atšaukti ir pakeiskite POD.\n\nSpauskite Kitas, norėdami įvesti kaniulę ir pradėti leisti insuliną.
- Įvedama kaniulė
- Mėginkite nustatyti pradinį bazės profilį ir įvesti kaniulę.\n\nKai visi elementai yra patikrinti, galite paspausti Kitas.
- \nPOD yra aktyvus.\n\nJūsų bazės profilis yra suprogramuotas ir kaniulė įvesta.\n\nPatikrinkite, ar kaniulė buvo tinkamai įvesta, ir, jei jaučiate, kad taip nėra, pakeiskite POD.
- \nSpustelėkiteKitas, kad išjungtumėte POD.\n\nPastaba: Tai sustabdys insulino leidimą ir išjungs POD.
- POD išjungimas
- POD išjungtas.\n\nNuimkite POD nuo odos ir jį išmeskite.
+ Užpildyti POD
+ Užpildymas
+ Prijunkite POD
+ \nParuoškite infuzijos vietą. Nuimkite adatos apsauginį dangtelį, pleistro apsaugą ir užklijuokite POD ant infuzijos vietos.\n\nJei kaniulė atšoks, paspauskite Atšaukti ir pakeiskite POD.\n\nSpauskite Kitas, norėdami įvesti kaniulę ir pradėti leisti insuliną.
+ Įvedama kaniulė
+ Mėginkite nustatyti pradinį bazės profilį ir įvesti kaniulę.\n\nKai visi elementai yra patikrinti, galite paspausti Kitas.
+ \nPOD yra aktyvus.\n\nJūsų bazės profilis yra suprogramuotas ir kaniulė įvesta.\n\nPatikrinkite, ar kaniulė buvo tinkamai įvesta, ir, jei jaučiate, kad taip nėra, pakeiskite POD.
+ \nSpustelėkiteKitas, kad išjungtumėte POD.\n\nPastaba: Tai sustabdys insulino leidimą ir išjungs POD.
+ POD išjungimas
+ POD išjungtas.\n\nNuimkite POD nuo odos ir jį išmeskite.Priminimas apie sąrankos pabaigąIšjungimas yra neišvengiamas
diff --git a/omnipod/src/main/res/values-nl-rNL/strings.xml b/omnipod/src/main/res/values-nl-rNL/strings.xml
index 48e84875cd..6022130a8d 100644
--- a/omnipod/src/main/res/values-nl-rNL/strings.xml
+++ b/omnipod/src/main/res/values-nl-rNL/strings.xml
@@ -12,16 +12,16 @@
Deactiveer Pod
- Vul de Pod
- Uitvullen
- Plaats de Pod
- \nBereid het plaatsen voor. Verwijder de beschermdop van de naald en haal de papiertjes van de sticker.\n\n(Mocht je zien dat de canule uitsteekt, druk dan op Annuleren en begin overnieuw met een andere Pod.)\n\nBevestig de Pod op de huid. Druk op Volgende om de canule te gaan inschieten en de insulinetoediening te laten starten.
- Canule inschieten
- De basaalstand wordt ingesteld en de canule wordt ingeschoten.\n\nWanneer alle onderdelen zijn afgerond, druk je op Volgende.
- \nDe Pod is nu actief.\n\nJouw basaalprofiel is ingeladen in de Pod en de canule is ingebracht.\n\nControleer of de canule correct is geplaatst en vervang de Pod als je denkt dat er iets is misgegaan.
- \nDruk op Volgende om de Pod te deactiveren.\n\nOpmerking: Hiermee wordt de insuline toediening gestopt en wordt de Pod gedeactiveerd.
- Deactiveren van de Pod
- Pod gedeactiveerd.\n\nVerwijder de Pod van je lichaam en gooi hem weg.
+ Vul de Pod
+ Uitvullen
+ Plaats de Pod
+ \nBereid het plaatsen voor. Verwijder de beschermdop van de naald en haal de papiertjes van de sticker.\n\n(Mocht je zien dat de canule uitsteekt, druk dan op Annuleren en begin overnieuw met een andere Pod.)\n\nBevestig de Pod op de huid. Druk op Volgende om de canule te gaan inschieten en de insulinetoediening te laten starten.
+ Canule inschieten
+ De basaalstand wordt ingesteld en de canule wordt ingeschoten.\n\nWanneer alle onderdelen zijn afgerond, druk je op Volgende.
+ \nDe Pod is nu actief.\n\nJouw basaalprofiel is ingeladen in de Pod en de canule is ingebracht.\n\nControleer of de canule correct is geplaatst en vervang de Pod als je denkt dat er iets is misgegaan.
+ \nDruk op Volgende om de Pod te deactiveren.\n\nOpmerking: Hiermee wordt de insuline toediening gestopt en wordt de Pod gedeactiveerd.
+ Deactiveren van de Pod
+ Pod gedeactiveerd.\n\nVerwijder de Pod van je lichaam en gooi hem weg.Herinnering setup afrondenSchakelt zeer binnenkort uit
diff --git a/omnipod/src/main/res/values-pl-rPL/strings.xml b/omnipod/src/main/res/values-pl-rPL/strings.xml
index 01699174db..9c81504a56 100644
--- a/omnipod/src/main/res/values-pl-rPL/strings.xml
+++ b/omnipod/src/main/res/values-pl-rPL/strings.xml
@@ -12,16 +12,16 @@
Odłącz Pod
- Napełnij Pod
- Wypełnianie
- Przymocuj Poda
- \nPrzygotowanie miejsca do infuzji. Zdjąć osłonkę igły i zabezpieczenie plastra i przykleić Pod do skóry w miejscu wkłucia.\n\nJeśli kaniula odkleja się, proszę wcisnąć Anuluj i odczepić Pod.\n\nNaciśnij Następny w celu wprowadzenia kaniuli i rozpoczęcia podawania bazy.
- Wprowadzanie kaniuli
- Próba ustawienia początkowego planu bazowego i wprowadzeia kaniuli.\n\nKiedy wszystkie elementy są sprawdzane, można nacisnąć Następny.
- \nPod jest teraz aktywny.\n\nTwój plan dawki bazowej został zaprogramowany i wprowadzono kaniulę w miejsce wkłucia.\n\nSprawdź, czy kaniula została prawidłowo włożona i wymień swój Pod, jeśli czujesz, że nie.
- \nNaciśnij Następny w celu odłączenia Poda.\n\nUwaga: To spowoduje zawieszenie wszystkich dostaw insuliny i dezaktywację Poda.
- Odłączanie Poda
- Pod odłączony.\n\nProszę odkleić Pod od ciała i wyrzucić go.
+ Napełnij Pod
+ Wypełnianie
+ Przymocuj Poda
+ \nPrzygotowanie miejsca do infuzji. Zdjąć osłonkę igły i zabezpieczenie plastra i przykleić Pod do skóry w miejscu wkłucia.\n\nJeśli kaniula odkleja się, proszę wcisnąć Anuluj i odczepić Pod.\n\nNaciśnij Następny w celu wprowadzenia kaniuli i rozpoczęcia podawania bazy.
+ Wprowadzanie kaniuli
+ Próba ustawienia początkowego planu bazowego i wprowadzeia kaniuli.\n\nKiedy wszystkie elementy są sprawdzane, można nacisnąć Następny.
+ \nPod jest teraz aktywny.\n\nTwój plan dawki bazowej został zaprogramowany i wprowadzono kaniulę w miejsce wkłucia.\n\nSprawdź, czy kaniula została prawidłowo włożona i wymień swój Pod, jeśli czujesz, że nie.
+ \nNaciśnij Następny w celu odłączenia Poda.\n\nUwaga: To spowoduje zawieszenie wszystkich dostaw insuliny i dezaktywację Poda.
+ Odłączanie Poda
+ Pod odłączony.\n\nProszę odkleić Pod od ciała i wyrzucić go.Zakończ przypomnienie o konfiguracjiWyłączenie jest nieuchronne
diff --git a/omnipod/src/main/res/values-pt-rPT/strings.xml b/omnipod/src/main/res/values-pt-rPT/strings.xml
index 5e986ed582..2243e1820b 100644
--- a/omnipod/src/main/res/values-pt-rPT/strings.xml
+++ b/omnipod/src/main/res/values-pt-rPT/strings.xml
@@ -30,18 +30,18 @@
Desactivar Pod%1$.2f U%1$.2f U, HC=%2$.1f g
- Encher o Pod
- A Purgar
- Anexar o Pod
- \nPrepare o local de infusão. Remova a tampa da agulha do Pod e o adesivo e fixe o Pod no local de infusão.\n\nSe a canula sair, por favor, pressione Cancelar e descarte o seu Pod.\n\nPressione Próximo para inserir a canula e começar a administração da basal.
- A inserir canula
- A tentar definir um plano da basal inicial e inserir canula.\n\nQuando todos os itens estiverem verificados, pode pressionar Próximo.
- Info Pod
- \nO Pod está agora activo.\n\nO seu plano de basal foi programado e a canula foi inserida.\n\nPor favor, verifique se a canula foi inserida correctamente e substitua o seu Pod se você se sente que não.
- Desactivar Pod
- \nPressione Próximo para desactivar o Pod.\n\nNota: Isto irá suspender toda a administração de insulina e desactivar o Pod.
- A Desactivar Pod
- Pod desactivado.\n\nPor favor, remova o Pod do seu corpo e descarte-o.
+ Encher o Pod
+ A Purgar
+ Anexar o Pod
+ \nPrepare o local de infusão. Remova a tampa da agulha do Pod e o adesivo e fixe o Pod no local de infusão.\n\nSe a canula sair, por favor, pressione Cancelar e descarte o seu Pod.\n\nPressione Próximo para inserir a canula e começar a administração da basal.
+ A inserir canula
+ A tentar definir um plano da basal inicial e inserir canula.\n\nQuando todos os itens estiverem verificados, pode pressionar Próximo.
+ Info Pod
+ \nO Pod está agora activo.\n\nO seu plano de basal foi programado e a canula foi inserida.\n\nPor favor, verifique se a canula foi inserida correctamente e substitua o seu Pod se você se sente que não.
+ Desactivar Pod
+ \nPressione Próximo para desactivar o Pod.\n\nNota: Isto irá suspender toda a administração de insulina e desactivar o Pod.
+ A Desactivar Pod
+ Pod desactivado.\n\nPor favor, remova o Pod do seu corpo e descarte-o.Lembrete Concluir EmparelhamentoLembrete Terminar Configuração
@@ -57,7 +57,7 @@
RileyLinkOutroAlertas
- Seguinte
+ SeguinteDescriçãoFonteData
diff --git a/omnipod/src/main/res/values-ro-rRO/strings.xml b/omnipod/src/main/res/values-ro-rRO/strings.xml
index 265b8342d9..89bb1d2a68 100644
--- a/omnipod/src/main/res/values-ro-rRO/strings.xml
+++ b/omnipod/src/main/res/values-ro-rRO/strings.xml
@@ -77,22 +77,22 @@
%1$.2f U%1$.2f U, CH=%2$.1f gRata: %1$.2f U, Durata: %2$d min
- Dacă apăsați OK, statusul Pod-ului va fi resetat forțat și nu veți mai putea comunica cu Pod-ul. Faceți acest lucru numai dacă nu mai se poate comunica deloc cu Pod-ul. Dacă se mai poate comunica cu Pod-ul, va rugam sa folosiți opțiunea Dezactivare Pod.\n\nDacă doriți să continuați, vă rugăm să vă asigurați, de asemenea, ca îndepărtați Pod-ul de pe corpul dvs.
- Umpleţi Pod-ul
- \nUmpleți noul Pod cu suficientă insulină pentru 3 zile.\n\nAr trebui sa auziți două bipuri de la Pod în timpul procesului de umplere. Acestea indică faptul că, cantitatea minimă de 85U a fost introdusă. Asigurați-vă ca ați golit complet seringa de umplere, chiar și după ce ați auzit două bipuri.\n\nDupă umplerea Pod-ului, vă rugăm să apăsați Următorul.\n\nNotă: Nu scoateți capacul transparent al acului in acest moment.\nNotă: Va rugam sa puneți RileyLink în poziție verticala și plasați Pod-ul la o distanta de câțiva centimetri.
- Amorsare
- Încercare de împerechere cu noul Pod și amorsare.\n\nAtunci când toate etapele sunt gata, puteți apăsa Următorul.\n\nNotă: Vă rugăm sa puneți RileyLInk in poziție verticala si sa plasați Pod-ul la câțiva centimetri distanta.
- Atașați Pod-ul
- \nPregătiți setul de infuzie. Scoateți capacul acului și suport adeziv și atașați Pod-ul la locul de infuzie.\n\nDacă, canula pare in neregulă, apăsați Anulare și aruncați Pod-ul.\n\nApăsați Următorul pentru a introduce canula și a începe livrarea bazalei.
- Inserare canulă
- Încercare de programare inițială a ratelor bazale si de insertie a canulei.\n\nCând toate elementele sunt gata, puteți apăsa Următorul.
- Informații Pod
- \nPod-ul este acum activ.\n\nRatele bazale au fost programate și canula a fost introdusă.\n\nVă rugăm să verificați că acul a fost introdus corect. Dacă considerați ca nu, înlocuiți Pod-ul.
- Dezactivare Pod
- \nApăsați Următorul pentru a dezactiva Pod-ul.\n\nNotă: Acest lucru va suspenda orice livrare de insulină și va dezactiva Pod-ul.
- Dezactivare Pod
- Dezactivare Pod.\n\nAtunci când toate elementele sunt gata, puteți apăsa Următorul.\n\nNotă: Dacă dezactivarea eșuează continuu, vă rugăm să apăsați Anulează și folosiți opțiunea Resetare Pod pentru a forța resetarea Pod-ului.
- Pod dezactivat.\n\nScoateți Pod-ul și aruncați-l.
+ Dacă apăsați OK, statusul Pod-ului va fi resetat forțat și nu veți mai putea comunica cu Pod-ul. Faceți acest lucru numai dacă nu mai se poate comunica deloc cu Pod-ul. Dacă se mai poate comunica cu Pod-ul, va rugam sa folosiți opțiunea Dezactivare Pod.\n\nDacă doriți să continuați, vă rugăm să vă asigurați, de asemenea, ca îndepărtați Pod-ul de pe corpul dvs.
+ Umpleţi Pod-ul
+ \nUmpleți noul Pod cu suficientă insulină pentru 3 zile.\n\nAr trebui sa auziți două bipuri de la Pod în timpul procesului de umplere. Acestea indică faptul că, cantitatea minimă de 85U a fost introdusă. Asigurați-vă ca ați golit complet seringa de umplere, chiar și după ce ați auzit două bipuri.\n\nDupă umplerea Pod-ului, vă rugăm să apăsați Următorul.\n\nNotă: Nu scoateți capacul transparent al acului in acest moment.\nNotă: Va rugam sa puneți RileyLink în poziție verticala și plasați Pod-ul la o distanta de câțiva centimetri.
+ Amorsare
+ Încercare de împerechere cu noul Pod și amorsare.\n\nAtunci când toate etapele sunt gata, puteți apăsa Următorul.\n\nNotă: Vă rugăm sa puneți RileyLInk in poziție verticala si sa plasați Pod-ul la câțiva centimetri distanta.
+ Atașați Pod-ul
+ \nPregătiți setul de infuzie. Scoateți capacul acului și suport adeziv și atașați Pod-ul la locul de infuzie.\n\nDacă, canula pare in neregulă, apăsați Anulare și aruncați Pod-ul.\n\nApăsați Următorul pentru a introduce canula și a începe livrarea bazalei.
+ Inserare canulă
+ Încercare de programare inițială a ratelor bazale si de insertie a canulei.\n\nCând toate elementele sunt gata, puteți apăsa Următorul.
+ Informații Pod
+ \nPod-ul este acum activ.\n\nRatele bazale au fost programate și canula a fost introdusă.\n\nVă rugăm să verificați că acul a fost introdus corect. Dacă considerați ca nu, înlocuiți Pod-ul.
+ Dezactivare Pod
+ \nApăsați Următorul pentru a dezactiva Pod-ul.\n\nNotă: Acest lucru va suspenda orice livrare de insulină și va dezactiva Pod-ul.
+ Dezactivare Pod
+ Dezactivare Pod.\n\nAtunci când toate elementele sunt gata, puteți apăsa Următorul.\n\nNotă: Dacă dezactivarea eșuează continuu, vă rugăm să apăsați Anulează și folosiți opțiunea Resetare Pod pentru a forța resetarea Pod-ului.
+ Pod dezactivat.\n\nScoateți Pod-ul și aruncați-l.Notificare Finalizare împerechereFinalizare memento setare
@@ -127,7 +127,7 @@
Pod suspendatMai puțin de un minut în urmăSuspendare
- Împerechere și amorsare
+ Împerechere și amorsareUmpleţi canula şi setaţi profilul bazalObțineți jurnalul pulsurilorSe setează o bazală temporară falsă deoarece Pod-ul este suspendat
@@ -138,7 +138,7 @@
AlteleAlerteBip-uri de confirmare
- Următor
+ UrmătorDescriereSursăData
diff --git a/omnipod/src/main/res/values-ru-rRU/strings.xml b/omnipod/src/main/res/values-ru-rRU/strings.xml
index 078a04bc1d..30ed28898f 100644
--- a/omnipod/src/main/res/values-ru-rRU/strings.xml
+++ b/omnipod/src/main/res/values-ru-rRU/strings.xml
@@ -58,21 +58,21 @@
Приостановить подачуВозобновить подачуНеизвестная запись
- Заполнить Pod
- \nЗаполните новый Pod запасом инсулина на 3 дня.\n\nПоступят два звуковых сигнала от помпы во время заправки. Это означает, что минимальное количество 85U заправлено. Не забудьте опустошить заправочный шприц даже после того, как услышите два звуковых сигнала.\n\nПосле заполнения Pod нажмите Next.\n\nПримечание: Пока не снимайте с помпы колпачок с иглой.\nПримечание:поставьте RileyLink вертикально рядом с Pod.
- Первичное заполнение инфузионной секции пода
- Попытка сопряжения с новым Podом и первичного заполнения инфузионного отсека..\n\n После проверки всех \'nfgjd можно нажать Далее.\n\nПримечание: В это время RileyLink должен находиться в вертикальном положении рядом с Pod.
- Подключить Под
- \nПодготовьте место инфузии. Удалите колпачок с иглы и защиту липкого слоя, Установите Pod на тело.\n\nесли канюля выступает, нажмите отменить и утилизируйте Pod.\n\Нажмите Далее чтобы вставить канюлю и начать подачу базала.
- Установка канюли (катетера)
- Определение графика подачи базала и установка канюли. \n\n Когда проверены все шаги, нажмите Далее.
- Информация о Pod
- \nПомпа сейчас активна.\n\nБазальный график запрограммирован и катетер установлен.\n\nУбедитесь в том, что канюля установлена правильно и замените Pod, если такой уверенности нет.
- Деактивировать Pod
- \nНажмите Далее для деактивации Пода\n\nПримечание: Это Приостановит всякую подачу инсулина и деактивирует помпу.
- Деактивация помпы
- Деактивация помпы.\n\n, Когда проверены все элементы, нажмите Далее.\n\nПримечание: Если деактивация постоянно завершается ошибкой, нажмите Отменить и примените Сброс помпы чтобы принудительно сбросить состояние Pod\'a.
- Pod деактивирован.\n\nУдалите и утилизируйте Pod.
+ Заполнить Pod
+ \nЗаполните новый Pod запасом инсулина на 3 дня.\n\nПоступят два звуковых сигнала от помпы во время заправки. Это означает, что минимальное количество 85U заправлено. Не забудьте опустошить заправочный шприц даже после того, как услышите два звуковых сигнала.\n\nПосле заполнения Pod нажмите Next.\n\nПримечание: Пока не снимайте с помпы колпачок с иглой.\nПримечание:поставьте RileyLink вертикально рядом с Pod.
+ Первичное заполнение инфузионной секции пода
+ Попытка сопряжения с новым Podом и первичного заполнения инфузионного отсека..\n\n После проверки всех \'nfgjd можно нажать Далее.\n\nПримечание: В это время RileyLink должен находиться в вертикальном положении рядом с Pod.
+ Подключить Под
+ \nПодготовьте место инфузии. Удалите колпачок с иглы и защиту липкого слоя, Установите Pod на тело.\n\nесли канюля выступает, нажмите отменить и утилизируйте Pod.\n\Нажмите Далее чтобы вставить канюлю и начать подачу базала.
+ Установка канюли (катетера)
+ Определение графика подачи базала и установка канюли. \n\n Когда проверены все шаги, нажмите Далее.
+ Информация о Pod
+ \nПомпа сейчас активна.\n\nБазальный график запрограммирован и катетер установлен.\n\nУбедитесь в том, что канюля установлена правильно и замените Pod, если такой уверенности нет.
+ Деактивировать Pod
+ \nНажмите Далее для деактивации Пода\n\nПримечание: Это Приостановит всякую подачу инсулина и деактивирует помпу.
+ Деактивация помпы
+ Деактивация помпы.\n\n, Когда проверены все элементы, нажмите Далее.\n\nПримечание: Если деактивация постоянно завершается ошибкой, нажмите Отменить и примените Сброс помпы чтобы принудительно сбросить состояние Pod\'a.
+ Pod деактивирован.\n\nУдалите и утилизируйте Pod.Напоминание о завершении сопряженияНапоминание о завершении настройки
@@ -97,7 +97,7 @@
%1$s назадОжидание соединения RileyLink...Менее минуты назад
- Выполнить сопряжение и заполнить
+ Выполнить сопряжение и заполнитьЗаполнить катетер и установить базовый профильУстановить фейковый временный базал, так как Pod остановленОтменить фейковый временный базал, который был создан из-за приостановки действия Pod
@@ -106,7 +106,7 @@
ДругоеОповещенияЗвуковые сигналы подтверждения
- Далее
+ ДалееОписаниеИсточникдата
diff --git a/omnipod/src/main/res/values-sk-rSK/strings.xml b/omnipod/src/main/res/values-sk-rSK/strings.xml
index 0c61a60e8f..779e1f28db 100644
--- a/omnipod/src/main/res/values-sk-rSK/strings.xml
+++ b/omnipod/src/main/res/values-sk-rSK/strings.xml
@@ -58,21 +58,21 @@
Pozastaviť dodávanie inzulínuPokračovať v dodávaní inzulínuNeznáma položka
- Naplňte Pod
- \nNaplňte nový Pod dostatočným množstvom inzulínu na 3 dni.\n\nSledujte dve pípnutia z Podu v priebehu procesu plnenia. Tieto ukazujú, že minimálne množstvo 85JI bolo naplnené. Uistite sa, že striekačka je úplne vyprázdnená a to i po vypočutí dvoch pípnutí.\n\nPo naplnení Podu, prosím, stlačte Další.\n\nPoznámka: zatiaľ nedávajte dole kryt ihly.\nPoznámka:prosím umiestnite RileyLink vo zvislej pozícii blízko Podu.
- Plnenie
- Pokúste sa spárovať s novým Podom a naplňte ho.\n\nKeď sú všetky položky zaškrtnuté, môžete stlačiť Ďalej.\n\nPoznámka: prosím držte teraz Pod veľmi blízko RileyLinku.
- Pripevni Pod
- \nPripravte infúzny set. Odstráňte krytku ihly na Pode a ochranu samolepky a pripojte Pod k infúznemu setu. \n\nAk sa kanyla odlepí, prosím stlačte Zrušiť a zahoďte Váš Pod.\n\nStlačte Ďalšia na zavedenie kanyly a začiatok podávania bazálu.
- Zavedenie kanyly
- Pokúšam sa nastaviť počiatočnú bazálnu dávku a zaviesť kanylu.\n\nAk sú všetky položky označené, môžete stlačiť Ďalší.
- Informácie o Pode
- \nPod je teraz aktívny.\n\nVaša bazálna dávka je nastavená a kanyla bola zavedená.\n\nProsím skontrolujte, či bola kanyla zavedená správne a ak máte pocit, že nie, tak vymeňte Pod.
- Deaktivovať Pod
- \nStlačte Ďalej pre deaktiváciu Podu.\n\nPoznámka: Toto preruší celkovo podávanie inzulínu a deaktivuje Pod.
- Deaktivácia Podu
- Deaktivujem Pod.\n\nKeď sú všetky položky zaškrtnuté, môžete stlačiť Ďalej.\n\nPoznámka: Ak deaktivácia neustále zlyháva, stlačte prosím Zrušiť a použite možnosť Resetovať Pod, na nútené obnovenie stavu Podu.
- Pod deaktivovaný.\n\nProsím odstráňte Pod z Vášho tela a zlikvidujte ho.
+ Naplňte Pod
+ \nNaplňte nový Pod dostatočným množstvom inzulínu na 3 dni.\n\nSledujte dve pípnutia z Podu v priebehu procesu plnenia. Tieto ukazujú, že minimálne množstvo 85JI bolo naplnené. Uistite sa, že striekačka je úplne vyprázdnená a to i po vypočutí dvoch pípnutí.\n\nPo naplnení Podu, prosím, stlačte Další.\n\nPoznámka: zatiaľ nedávajte dole kryt ihly.\nPoznámka:prosím umiestnite RileyLink vo zvislej pozícii blízko Podu.
+ Plnenie
+ Pokúste sa spárovať s novým Podom a naplňte ho.\n\nKeď sú všetky položky zaškrtnuté, môžete stlačiť Ďalej.\n\nPoznámka: prosím držte teraz Pod veľmi blízko RileyLinku.
+ Pripevni Pod
+ \nPripravte infúzny set. Odstráňte krytku ihly na Pode a ochranu samolepky a pripojte Pod k infúznemu setu. \n\nAk sa kanyla odlepí, prosím stlačte Zrušiť a zahoďte Váš Pod.\n\nStlačte Ďalšia na zavedenie kanyly a začiatok podávania bazálu.
+ Zavedenie kanyly
+ Pokúšam sa nastaviť počiatočnú bazálnu dávku a zaviesť kanylu.\n\nAk sú všetky položky označené, môžete stlačiť Ďalší.
+ Informácie o Pode
+ \nPod je teraz aktívny.\n\nVaša bazálna dávka je nastavená a kanyla bola zavedená.\n\nProsím skontrolujte, či bola kanyla zavedená správne a ak máte pocit, že nie, tak vymeňte Pod.
+ Deaktivovať Pod
+ \nStlačte Ďalej pre deaktiváciu Podu.\n\nPoznámka: Toto preruší celkovo podávanie inzulínu a deaktivuje Pod.
+ Deaktivácia Podu
+ Deaktivujem Pod.\n\nKeď sú všetky položky zaškrtnuté, môžete stlačiť Ďalej.\n\nPoznámka: Ak deaktivácia neustále zlyháva, stlačte prosím Zrušiť a použite možnosť Resetovať Pod, na nútené obnovenie stavu Podu.
+ Pod deaktivovaný.\n\nProsím odstráňte Pod z Vášho tela a zlikvidujte ho.Pripomienka ukončenia párovaniaPripomienka ukončenia nastavenia
@@ -97,7 +97,7 @@
pred %1$s minČaká sa na pripojenie RileyLinku...Pred menej ako minútou
- Spáruj a naplň
+ Spáruj a naplňNaplňte kanylu a nastavte bazálny profilNastaviť falošný dočasný bazál, pretože Pod je pozastavenýZrušiť falošný dočasný bazál ktorý bol vytvorený, pretože Pod bol pozastavený
@@ -106,7 +106,7 @@
InéVýstrahyPotvrdzujúce pípnutie
- Ďalšia
+ ĎalšiaPopisZdrojDátum
diff --git a/omnipod/src/main/res/values-sv-rSE/strings.xml b/omnipod/src/main/res/values-sv-rSE/strings.xml
index 65e7413d16..f1d4b545e4 100644
--- a/omnipod/src/main/res/values-sv-rSE/strings.xml
+++ b/omnipod/src/main/res/values-sv-rSE/strings.xml
@@ -12,16 +12,16 @@
Inaktivera pod
- Fyll pod
- Förfyllning
- Fäst podden
- \nFörbered infusionsplatsen. Ta bort poddens nålskydd och fäst podden på infusionsplatsen.\n\nOm kanylen sticker ut, tryck på Avbryt och kasta din pod.\n\nTryck Nästa för att skjuta in kanylen och påbörja basaldoseringen.
- Skjuter in kanylen
- Försöker att ställa in basaldoser och skjuta in kanylen.\n\nNär alla steg är slutförda, kan du trycka på Nästa.
- \nPodden är nu aktiverad.\n\nDina basaldoser har programmerats och kanylen har skjutits in in.\n\nKontrollera att kanylen sitter på rätt sätt och byt pod om den inte gjort det.
- \nTryck på Nästa för att inaktivera podden.\n\nOBS! Det här stoppar all insulintillförsel och inaktiverar podden.
- Inaktiverar pod
- Pod inaktiverad.\n\nTa bort podden och kasta den.
+ Fyll pod
+ Förfyllning
+ Fäst podden
+ \nFörbered infusionsplatsen. Ta bort poddens nålskydd och fäst podden på infusionsplatsen.\n\nOm kanylen sticker ut, tryck på Avbryt och kasta din pod.\n\nTryck Nästa för att skjuta in kanylen och påbörja basaldoseringen.
+ Skjuter in kanylen
+ Försöker att ställa in basaldoser och skjuta in kanylen.\n\nNär alla steg är slutförda, kan du trycka på Nästa.
+ \nPodden är nu aktiverad.\n\nDina basaldoser har programmerats och kanylen har skjutits in in.\n\nKontrollera att kanylen sitter på rätt sätt och byt pod om den inte gjort det.
+ \nTryck på Nästa för att inaktivera podden.\n\nOBS! Det här stoppar all insulintillförsel och inaktiverar podden.
+ Inaktiverar pod
+ Pod inaktiverad.\n\nTa bort podden och kasta den.Påminnelse att slutföra installationPod löper snart ut
diff --git a/omnipod/src/main/res/values/colors.xml b/omnipod/src/main/res/values/colors.xml
index 8630a21d13..078411269a 100644
--- a/omnipod/src/main/res/values/colors.xml
+++ b/omnipod/src/main/res/values/colors.xml
@@ -1,5 +1,5 @@
- #0099CC
+ #0099CC#ff669900
\ No newline at end of file
diff --git a/omnipod/src/main/res/values/dimens.xml b/omnipod/src/main/res/values/dimens.xml
index 2bad5c9a76..fba59bf307 100644
--- a/omnipod/src/main/res/values/dimens.xml
+++ b/omnipod/src/main/res/values/dimens.xml
@@ -1,4 +1,4 @@
- 10dp
+ 10dp
\ No newline at end of file
diff --git a/omnipod/src/main/res/values/strings.xml b/omnipod/src/main/res/values/strings.xml
index b174533f0c..3822f3b6f3 100644
--- a/omnipod/src/main/res/values/strings.xml
+++ b/omnipod/src/main/res/values/strings.xml
@@ -120,7 +120,7 @@
Unable to verify whether the bolus succeeded. Please manually verify that your Pod is bolusing by listening to clicks. If you are sure that the bolus didn\'t succeed, you should manually delete the bolus entry from Treatments, even if you click \'Cancel bolus\' now!Unable to verify whether SMB bolus (%1$.2f U) succeeded. If you are sure that the Bolus didn\'t succeed, you should manually delete the SMB entry from Treatments.Bolus did not succeed.
- Failed to activate the Pod
+ Failed to initialize the PodFailed to insert cannulaThe Pod\'s activation time has been exceeded. This Pod can no longer be activated.
@@ -151,7 +151,7 @@
Suspend deliveryResume deliveryUnknown entry
- Activate new Pod
+ Initialize PodInsert cannulaRead pulse logSet fake temporary basal because the Pod is suspended
@@ -160,40 +160,45 @@
Pod managementWaiting for RileyLink connection…
- Change Pod
+ Activate Pod
+ Deactivate PodDiscard PodPod history
- If you discard the Pod, you will not be able to communicate with it anymore. You should only do this when all communication with the Pod persistently fails. If you can still communicate with the Pod, please use the Change Pod option.\n\nIf you wish to proceed, please make sure to remove the Pod from your body!
+ If you discard the Pod, you will not be able to communicate with it anymore. You should only do this when all communication with the Pod persistently fails. If you can still communicate with the Pod, please use the Deactivate Pod option.\n\nIf you wish to proceed, please make sure to remove the Pod from your body!
-
- Cancel
- Finish
- Next
- Retry
- Deactivate Pod
- Discard Pod
- You haven\'t finished changing your Pod yet. Are you sure you want to exit?
- Change Pod
- Fill Pod
- Fill a new Pod with enough insulin for 3 days.\n\nListen for two beeps from the Pod during the filling process. These indicate that the minimum amount of 85U has been inserted. Be sure to completely empty the fill syringe, even after hearing the two beeps.\n\nAfter filling the Pod, please press Next.\n\nNote: do not remove the Pod\'s needle cap at this time.\nNote: please place the RileyLink in an upright position and place the Pod a few inches away from it.
- Activate Pod
- Trying to pair with the new Pod and prime it.\n\nWhen the activation process has successfully been completed, you can press Next.\n\nNote: please place the RileyLink in an upright position and place the Pod a few inches away from it.
- Attach Pod
- Prepare the infusion site. Remove the Pod\'s needle cap and adhesive backing and attach the Pod to the infusion site.\n\nIf the cannula sticks out, please press Cancel and discard your Pod.\n\nPress Next to insert the cannula and begin basal delivery.
- Insert cannula
- Trying to set initial basal schedule and insert the cannula.\n\nWhen the cannula has successfully been inserted, you can press Next.
- Pod changed
- The new Pod is now active.\n\nYour basal schedule has been programmed and the cannula has been inserted.\n\nPlease verify that the cannula has been inserted correctly and change your Pod if you feel hasn\'t.
- Deactivate Pod
- Press Next to deactivate the Pod.\n\nNote: This will suspend all insulin delivery and deactivate the Pod.
- Deactivating Pod
- Deactivating the Pod.\n\nWhen deactivation has completed successfully, you can press Next.
- Pod deactivated
- Your Pod has been deactivated.\n\nPlease remove the Pod from your body and recycle it.
- Pod discarded
- The Pod state has been discarded. Insulin delivery hasn\'t been suspended because the Pod has not been properly deactivated!\n\nPlease remove the Pod from your body and recycle it.
- If you discard the Pod, you will not be able to communicate with it anymore. You should only do this when all communication with the Pod persistently fails. Are you sure you want to discard the Pod?
- Discard Pod
+
+ Cancel
+ Finish
+ Next
+ Retry
+ Deactivate Pod
+ Discard Pod
+ You haven\'t completed all steps yet. Are you sure you want to exit?
+ Exit
+
+
+ Fill Pod
+ Fill a new Pod with enough insulin for 3 days.\n\nListen for two beeps from the Pod during the filling process. These indicate that the minimum amount of 85U has been inserted. Be sure to completely empty the fill syringe, even after hearing the two beeps.\n\nAfter filling the Pod, please press Next.\n\nNote: do not remove the Pod\'s needle cap at this time.\nNote: please place the RileyLink in an upright position and place the Pod a few inches away from it.
+ Initialize Pod
+ Trying to pair with the new Pod and prime it.\n\nWhen the initialization process has successfully been completed, you can press Next.\n\nNote: please place the RileyLink in an upright position and place the Pod a few inches away from it.
+ Attach Pod
+ Prepare the infusion site. Remove the Pod\'s needle cap and adhesive backing and attach the Pod to the infusion site.\n\nIf the cannula sticks out, please press Cancel and discard your Pod.\n\nPress Next to insert the cannula and begin basal delivery.
+ Insert cannula
+ Trying to set initial basal schedule and insert the cannula.\n\nWhen the cannula has successfully been inserted, you can press Next.
+ Pod activated
+ The new Pod is now active.\n\nYour basal schedule has been programmed and the cannula has been inserted.\n\nPlease verify that the cannula has been inserted correctly and change your Pod if you think it has not.
+
+
+ Deactivate Pod
+ Press Next to deactivate the Pod.\n\nNote: This will suspend all insulin delivery and deactivate the Pod.
+ Deactivating Pod
+ Deactivating the Pod.\n\nWhen deactivation has completed successfully, you can press Next.
+ Pod deactivated
+ Your Pod has been deactivated.\n\nPlease remove the Pod from your body and recycle it.
+ Pod discarded
+ The Pod state has been discarded. Insulin delivery has not been suspended because the Pod has not been properly deactivated!\n\nPlease remove the Pod from your body and recycle it.
+ If you discard the Pod, you will not be able to communicate with it anymore. You should only do this when all communication with the Pod persistently fails. Are you sure you want to discard the Pod?
+ Discard PodSet time
diff --git a/omnipod/src/main/res/values/styles.xml b/omnipod/src/main/res/values/styles.xml
index e9b7e37239..1e590c64d8 100644
--- a/omnipod/src/main/res/values/styles.xml
+++ b/omnipod/src/main/res/values/styles.xml
@@ -1,16 +1,16 @@
-
-
-