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 67b80ed0b4..9d90abe3fc 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 @@ -25,6 +25,7 @@ import info.nightscout.androidaps.logging.AAPSLogger import info.nightscout.androidaps.plugins.bus.RxBusWrapper import info.nightscout.androidaps.plugins.general.actions.defs.CustomAction import info.nightscout.androidaps.plugins.general.overview.StatusLightHandler +import info.nightscout.androidaps.plugins.pump.omnipod.OmnipodPumpPlugin import info.nightscout.androidaps.queue.Callback import info.nightscout.androidaps.skins.SkinProvider import info.nightscout.androidaps.utils.FabricPrivacy @@ -254,7 +255,7 @@ class ActionsFragment : DaggerFragment() { val activeBgSource = activePlugin.activeBgSource actions_historybrowser.visibility = (profile != null).toVisibility() actions_fill?.visibility = (pump.pumpDescription.isRefillingCapable && pump.isInitialized && !pump.isSuspended).toVisibility() - actions_pumpbatterychange?.visibility = pump.pumpDescription.isBatteryReplaceable.toVisibility() + actions_pumpbatterychange?.visibility = (pump.pumpDescription.isBatteryReplaceable || (pump is OmnipodPumpPlugin && pump.isUseRileyLinkBatteryLevel && pump.isBatteryChangeLoggingEnabled)).toVisibility() actions_temptarget?.visibility = (profile != null && config.APS).toVisibility() actions_tddstats?.visibility = pump.pumpDescription.supportsTDDs.toVisibility() diff --git a/medtronic/src/main/res/values/strings.xml b/medtronic/src/main/res/values/strings.xml index 065bc6c735..12c1900a27 100644 --- a/medtronic/src/main/res/values/strings.xml +++ b/medtronic/src/main/res/values/strings.xml @@ -15,7 +15,6 @@ pref_medtronic_encoding pref_medtronic_battery_type pref_medtronic_bolus_debug - pref_rileylink_mac_address medtronic_pump_frequency_us_ca medtronic_pump_frequency_worldwide medtronic_pump_encoding_4b6b_local diff --git a/medtronic/src/main/res/xml/pref_medtronic.xml b/medtronic/src/main/res/xml/pref_medtronic.xml index 78e20e8ef8..5006bf32b9 100644 --- a/medtronic/src/main/res/xml/pref_medtronic.xml +++ b/medtronic/src/main/res/xml/pref_medtronic.xml @@ -98,6 +98,12 @@ + + AAPS.Omnipod.suspend_delivery_button_enabled AAPS.Omnipod.pulse_log_button_enabled AAPS.Omnipod.rileylink_stats_button_enabled - AAPS.Omnipod.use_riley_link_battery_level + AAPS.Omnipod.enable_battery_change_logging AAPS.Omnipod.time_change_enabled AAPS.Omnipod.expiration_reminder_enabled AAPS.Omnipod.expiration_reminder_hours_before_shutdown @@ -45,8 +45,7 @@ Show Suspend Delivery button in Omnipod tab Show Pulse Log button in Pod Management menu Show RileyLink Stats button in Pod Management menu - Use battery level reported by OrangeLink/EmaLink - DOES NOT work with the original RileyLink. May not work with other RileyLink alternatives. + Enable battery change logging in Actions DST/Time zone detection enabled Expiration reminder enabled Hours before shutdown diff --git a/omnipod/src/main/res/xml/pref_omnipod.xml b/omnipod/src/main/res/xml/pref_omnipod.xml index 853d5eda9e..a56ea0ce0b 100644 --- a/omnipod/src/main/res/xml/pref_omnipod.xml +++ b/omnipod/src/main/res/xml/pref_omnipod.xml @@ -11,6 +11,18 @@ + + + + @@ -114,12 +126,6 @@ android:key="@string/key_omnipod_riley_link_stats_button_enabled" android:title="@string/omnipod_config_rileylink_stats_button_enabled" /> - - + android:orientation="horizontal" + android:visibility="gone"> medtronic_pump_encoding_4b6b_rileylink pref_rileylink_mac_address pref_rileylink_name + pref_riley_link_show_reported_battery_level pref_medtronic_encoding @@ -75,6 +76,10 @@ Yes No + + Show battery level reported by OrangeLink/EmaLink + DOES NOT work with the original RileyLink. May not work with other RileyLink alternatives. + %1$d day %1$d days