From 2ac4cbd1db1f8d9c8de3c0ae3a792af1e4b9f6e2 Mon Sep 17 00:00:00 2001 From: Milos Kozak Date: Thu, 14 Apr 2022 10:16:00 +0200 Subject: [PATCH] combo: show generated serial in fragment --- .../plugins/pump/combo/ComboFragment.java | 3 ++ .../main/res/layout/combopump_fragment.xml | 45 +++++++++++++++++++ 2 files changed, 48 insertions(+) diff --git a/combo/src/main/java/info/nightscout/androidaps/plugins/pump/combo/ComboFragment.java b/combo/src/main/java/info/nightscout/androidaps/plugins/pump/combo/ComboFragment.java index b0fc0d809c..85407b6b07 100644 --- a/combo/src/main/java/info/nightscout/androidaps/plugins/pump/combo/ComboFragment.java +++ b/combo/src/main/java/info/nightscout/androidaps/plugins/pump/combo/ComboFragment.java @@ -61,6 +61,7 @@ public class ComboFragment extends DaggerFragment { private TextView errorCountLabel; private TextView errorCountDots; private TextView errorCountValue; + private TextView serialNumber; @Override public View onCreateView(@NonNull LayoutInflater inflater, ViewGroup container, @@ -77,6 +78,7 @@ public class ComboFragment extends DaggerFragment { tempBasalText = view.findViewById(R.id.combo_temp_basal); bolusCount = view.findViewById(R.id.combo_bolus_count); tbrCount = view.findViewById(R.id.combo_tbr_count); + serialNumber = view.findViewById(R.id.serial_number); errorCountDelimiter = view.findViewById(R.id.combo_connection_error_delimiter); errorCountLayout = view.findViewById(R.id.combo_connection_error_layout); @@ -255,6 +257,7 @@ public class ComboFragment extends DaggerFragment { // stats bolusCount.setText(String.valueOf(comboPlugin.getBolusesDelivered())); tbrCount.setText(String.valueOf(comboPlugin.getTbrsSet())); + serialNumber.setText(comboPlugin.serialNumber()); updateErrorDisplay(false); } else { diff --git a/combo/src/main/res/layout/combopump_fragment.xml b/combo/src/main/res/layout/combopump_fragment.xml index 8225bb48e7..e5395759d8 100644 --- a/combo/src/main/res/layout/combopump_fragment.xml +++ b/combo/src/main/res/layout/combopump_fragment.xml @@ -510,6 +510,51 @@ + + + + + + + + + + + +