diff --git a/app/src/main/java/info/nightscout/androidaps/plugins/general/actions/ActionsFragment.kt b/app/src/main/java/info/nightscout/androidaps/plugins/general/actions/ActionsFragment.kt index 7d55c33782..86a120a1d6 100644 --- a/app/src/main/java/info/nightscout/androidaps/plugins/general/actions/ActionsFragment.kt +++ b/app/src/main/java/info/nightscout/androidaps/plugins/general/actions/ActionsFragment.kt @@ -239,14 +239,29 @@ class ActionsFragment : DaggerFragment() { actions_pumpbatterychange?.visibility = pump.pumpDescription.isBatteryReplaceable.toVisibility() actions_temptarget?.visibility = (profile != null && config.APS).toVisibility() actions_tddstats?.visibility = pump.pumpDescription.supportsTDDs.toVisibility() + val shortlabel = sp.getBoolean(R.string.key_short_cp_label,false) + if (shortlabel) { + careportal_pblabel?.text = resourceHelper.gs(R.string.pump) + careportal_sensoragelabel?.text = "" + careportal_insulinagelabel?.text = "" + careportal_canulaagelabel?.text = "" + careportal_pbagelabel?.text = "" + } else { + careportal_pblabel.text = resourceHelper.gs(R.string.careportal_pb_label) + careportal_sensoragelabel.text = resourceHelper.gs(R.string.careportal_age_label) + careportal_insulinagelabel.text =resourceHelper.gs(R.string.careportal_age_label) + careportal_canulaagelabel.text =resourceHelper.gs(R.string.careportal_age_label) + careportal_pbagelabel.text =resourceHelper.gs(R.string.careportal_age_label) + } + if (!config.NSCLIENT) { statusLightHandler.updateStatusLights(careportal_canulaage, careportal_insulinage, careportal_reservoirlevel, careportal_sensorage, careportal_sensorlevel, careportal_pbage, careportal_batterylevel) if (activeBgSource.sensorBatteryLevel == -1) careportal_senslevellabel?.text = "" else - careportal_senslevellabel?.text = resourceHelper.gs(R.string.careportal_level_label) - careportal_inslevellabel?.text = resourceHelper.gs(R.string.careportal_level_label) - careportal_pblevellabel?.text = resourceHelper.gs(R.string.careportal_level_label) + careportal_senslevellabel?.text = if (shortlabel) "|" else resourceHelper.gs(R.string.careportal_level_label) + careportal_inslevellabel?.text = if (shortlabel) "|" else resourceHelper.gs(R.string.careportal_level_label) + careportal_pblevellabel?.text = if (shortlabel) "|" else resourceHelper.gs(R.string.careportal_level_label) } else { statusLightHandler.updateStatusLights(careportal_canulaage, careportal_insulinage, null, careportal_sensorage, null, careportal_pbage, null) careportal_senslevellabel?.text = "" diff --git a/app/src/main/res/layout/careportal_stats_fragment.xml b/app/src/main/res/layout/careportal_stats_fragment.xml index 7e6bcf4d74..87ce0f6719 100644 --- a/app/src/main/res/layout/careportal_stats_fragment.xml +++ b/app/src/main/res/layout/careportal_stats_fragment.xml @@ -25,6 +25,7 @@ - WEAR SMS Shorten tab titles + Shorten Careportal labels in Actions tab Always use short average delta instead of simple delta Useful when data from unfiltered sources like xDrip gets noisy. key_advancedsettings @@ -1031,6 +1032,7 @@ Minimal request change [%] Open Loop will popup new change request only if change is bigger than this value in %. Default value is 20% short_tabtitles + short_cplabel Searching for devices… Pairing completed Do the codes displayed on this device and on your pump match? diff --git a/app/src/main/res/xml/pref_overview.xml b/app/src/main/res/xml/pref_overview.xml index 75f81c96c4..907d82d026 100644 --- a/app/src/main/res/xml/pref_overview.xml +++ b/app/src/main/res/xml/pref_overview.xml @@ -282,6 +282,11 @@ android:key="@string/key_show_statuslights" android:title="@string/show_statuslights" /> + +