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 9462d3ebba..ef13548f97 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 @@ -64,13 +64,10 @@ import info.nightscout.androidaps.plugins.pump.common.hw.rileylink.RileyLinkUtil import info.nightscout.androidaps.plugins.pump.common.hw.rileylink.defs.RileyLinkPumpDevice; import info.nightscout.androidaps.plugins.pump.common.hw.rileylink.defs.RileyLinkPumpInfo; import info.nightscout.androidaps.plugins.pump.common.hw.rileylink.service.RileyLinkServiceData; -import info.nightscout.androidaps.plugins.pump.common.hw.rileylink.service.tasks.ResetRileyLinkConfigurationTask; -import info.nightscout.androidaps.plugins.pump.common.hw.rileylink.service.tasks.ServiceTaskExecutor; import info.nightscout.androidaps.plugins.pump.common.utils.DateTimeUtil; import info.nightscout.androidaps.plugins.pump.omnipod.data.ActiveBolus; import info.nightscout.androidaps.plugins.pump.omnipod.data.RLHistoryItemOmnipod; import info.nightscout.androidaps.plugins.pump.omnipod.definition.OmnipodCommandType; -import info.nightscout.androidaps.plugins.pump.omnipod.definition.OmnipodCustomActionType; import info.nightscout.androidaps.plugins.pump.omnipod.definition.OmnipodStorageKeys; import info.nightscout.androidaps.plugins.pump.omnipod.driver.communication.action.service.ExpirationReminderBuilder; import info.nightscout.androidaps.plugins.pump.omnipod.driver.communication.message.response.podinfo.PodInfoRecentPulseLog; @@ -122,7 +119,6 @@ public class OmnipodPumpPlugin extends PumpPluginBase implements PumpInterface, private final PodStateManager podStateManager; private final RileyLinkServiceData rileyLinkServiceData; - private final ServiceTaskExecutor serviceTaskExecutor; private final AapsOmnipodManager aapsOmnipodManager; private final AapsOmnipodUtil aapsOmnipodUtil; private final RileyLinkUtil rileyLinkUtil; @@ -140,8 +136,6 @@ public class OmnipodPumpPlugin extends PumpPluginBase implements PumpInterface, private final ServiceConnection serviceConnection; private final PumpType pumpType = PumpType.Insulet_Omnipod; - private final List customActions = Collections.singletonList(new CustomAction( - R.string.omnipod_custom_action_reset_rileylink, OmnipodCustomActionType.RESET_RILEY_LINK_CONFIGURATION, R.drawable.icon_pod_activity_reset_rileylink_config, true)); private final CompositeDisposable disposables = new CompositeDisposable(); private final NSUpload nsUpload; @@ -174,7 +168,6 @@ public class OmnipodPumpPlugin extends PumpPluginBase implements PumpInterface, CommandQueueProvider commandQueue, FabricPrivacy fabricPrivacy, RileyLinkServiceData rileyLinkServiceData, - ServiceTaskExecutor serviceTaskExecutor, DateUtil dateUtil, AapsOmnipodUtil aapsOmnipodUtil, RileyLinkUtil rileyLinkUtil, @@ -200,7 +193,6 @@ public class OmnipodPumpPlugin extends PumpPluginBase implements PumpInterface, this.dateUtil = dateUtil; this.podStateManager = podStateManager; this.rileyLinkServiceData = rileyLinkServiceData; - this.serviceTaskExecutor = serviceTaskExecutor; this.aapsOmnipodManager = aapsOmnipodManager; this.aapsOmnipodUtil = aapsOmnipodUtil; this.rileyLinkUtil = rileyLinkUtil; @@ -482,8 +474,9 @@ public class OmnipodPumpPlugin extends PumpPluginBase implements PumpInterface, @Override public boolean isHandshakeInProgress() { - if (displayConnectionMessages) + if (displayConnectionMessages) { aapsLogger.debug(LTag.PUMP, "isHandshakeInProgress [OmnipodPumpPlugin] - default (empty) implementation."); + } return false; } @@ -805,18 +798,12 @@ public class OmnipodPumpPlugin extends PumpPluginBase implements PumpInterface, @Override public List getCustomActions() { - return customActions; + return Collections.emptyList(); } @Override public void executeCustomAction(CustomActionType customActionType) { - OmnipodCustomActionType omnipodCustomActionType = (OmnipodCustomActionType) customActionType; - - if (omnipodCustomActionType == OmnipodCustomActionType.RESET_RILEY_LINK_CONFIGURATION) { - serviceTaskExecutor.startTask(new ResetRileyLinkConfigurationTask(getInjector())); - } else { - aapsLogger.warn(LTag.PUMP, "Unknown custom action: " + omnipodCustomActionType); - } + aapsLogger.warn(LTag.PUMP, "Unknown custom action: " + customActionType); } @Override diff --git a/omnipod/src/main/java/info/nightscout/androidaps/plugins/pump/omnipod/definition/OmnipodCustomActionType.java b/omnipod/src/main/java/info/nightscout/androidaps/plugins/pump/omnipod/definition/OmnipodCustomActionType.java deleted file mode 100644 index 9d9fbf3f13..0000000000 --- a/omnipod/src/main/java/info/nightscout/androidaps/plugins/pump/omnipod/definition/OmnipodCustomActionType.java +++ /dev/null @@ -1,17 +0,0 @@ -package info.nightscout.androidaps.plugins.pump.omnipod.definition; - -import info.nightscout.androidaps.plugins.general.actions.defs.CustomActionType; - -/** - * Created by andy on 4.8.2019 - */ - -public enum OmnipodCustomActionType implements CustomActionType { - RESET_RILEY_LINK_CONFIGURATION; - - @Override - public String getKey() { - return this.name(); - } - -} 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 058a033d85..d877481c46 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 @@ -11,6 +11,8 @@ import info.nightscout.androidaps.plugins.bus.RxBusWrapper import info.nightscout.androidaps.plugins.pump.common.events.EventRileyLinkDeviceStatusChange import info.nightscout.androidaps.plugins.pump.common.hw.rileylink.dialog.RileyLinkStatusActivity import info.nightscout.androidaps.plugins.pump.common.hw.rileylink.service.RileyLinkServiceData +import info.nightscout.androidaps.plugins.pump.common.hw.rileylink.service.tasks.ResetRileyLinkConfigurationTask +import info.nightscout.androidaps.plugins.pump.common.hw.rileylink.service.tasks.ServiceTaskExecutor import info.nightscout.androidaps.plugins.pump.omnipod.OmnipodPumpPlugin import info.nightscout.androidaps.plugins.pump.omnipod.R import info.nightscout.androidaps.plugins.pump.omnipod.driver.definition.ActivationProgress @@ -50,6 +52,7 @@ class PodManagementActivity : NoSplashAppCompatActivity() { @Inject lateinit var aapsOmnipodManager: AapsOmnipodManager @Inject lateinit var context: Context @Inject lateinit var omnipodPumpPlugin: OmnipodPumpPlugin + @Inject lateinit var serviceTaskExecutor: ServiceTaskExecutor private var disposables: CompositeDisposable = CompositeDisposable() @@ -80,6 +83,11 @@ class PodManagementActivity : NoSplashAppCompatActivity() { } } + omnipod_pod_management_button_reset_rileylink_config.setOnClickListener { + // TODO improvement: properly disable button until task is finished + serviceTaskExecutor.startTask(ResetRileyLinkConfigurationTask(injector)) + } + omnipod_pod_management_button_play_test_beep.setOnClickListener { omnipod_pod_management_button_play_test_beep.isEnabled = false omnipod_pod_management_button_play_test_beep.setText(R.string.omnipod_pod_management_button_playing_test_beep) diff --git a/omnipod/src/main/res/drawable/ic_omnipod_overview_acknowledge_alerts.xml b/omnipod/src/main/res/drawable/ic_omnipod_overview_acknowledge_alerts.xml new file mode 100644 index 0000000000..2908c8f16b --- /dev/null +++ b/omnipod/src/main/res/drawable/ic_omnipod_overview_acknowledge_alerts.xml @@ -0,0 +1,20 @@ + + + + diff --git a/omnipod/src/main/res/drawable/ic_omnipod_overview_pod_management.xml b/omnipod/src/main/res/drawable/ic_omnipod_overview_pod_management.xml new file mode 100644 index 0000000000..a1d2818dab --- /dev/null +++ b/omnipod/src/main/res/drawable/ic_omnipod_overview_pod_management.xml @@ -0,0 +1,21 @@ + + + + diff --git a/omnipod/src/main/res/drawable/ic_omnipod_overview_refresh_pod_status.xml b/omnipod/src/main/res/drawable/ic_omnipod_overview_refresh_pod_status.xml new file mode 100644 index 0000000000..83f0a2345d --- /dev/null +++ b/omnipod/src/main/res/drawable/ic_omnipod_overview_refresh_pod_status.xml @@ -0,0 +1,20 @@ + + + + + diff --git a/omnipod/src/main/res/drawable/ic_omnipod_overview_resume_delivery.xml b/omnipod/src/main/res/drawable/ic_omnipod_overview_resume_delivery.xml new file mode 100644 index 0000000000..4e2ae87839 --- /dev/null +++ b/omnipod/src/main/res/drawable/ic_omnipod_overview_resume_delivery.xml @@ -0,0 +1,17 @@ + + + + diff --git a/omnipod/src/main/res/drawable/ic_omnipod_overview_set_time.xml b/omnipod/src/main/res/drawable/ic_omnipod_overview_set_time.xml new file mode 100644 index 0000000000..d5c6e682c3 --- /dev/null +++ b/omnipod/src/main/res/drawable/ic_omnipod_overview_set_time.xml @@ -0,0 +1,18 @@ + + + + diff --git a/omnipod/src/main/res/drawable/ic_omnipod_overview_suspend_delivery.xml b/omnipod/src/main/res/drawable/ic_omnipod_overview_suspend_delivery.xml new file mode 100644 index 0000000000..033f53217b --- /dev/null +++ b/omnipod/src/main/res/drawable/ic_omnipod_overview_suspend_delivery.xml @@ -0,0 +1,17 @@ + + + + diff --git a/omnipod/src/main/res/drawable/icon_omnipod_wizard_success.xml b/omnipod/src/main/res/drawable/ic_omnipod_wizard_success.xml similarity index 100% rename from omnipod/src/main/res/drawable/icon_omnipod_wizard_success.xml rename to omnipod/src/main/res/drawable/ic_omnipod_wizard_success.xml diff --git a/omnipod/src/main/res/drawable/ic_pod_activity_reset_rileylink_config.xml b/omnipod/src/main/res/drawable/ic_pod_activity_reset_rileylink_config.xml new file mode 100644 index 0000000000..eee2a2ec84 --- /dev/null +++ b/omnipod/src/main/res/drawable/ic_pod_activity_reset_rileylink_config.xml @@ -0,0 +1,41 @@ + + + + + + + + + diff --git a/omnipod/src/main/res/drawable/ic_pod_management_activate_pod.xml b/omnipod/src/main/res/drawable/ic_pod_management_activate_pod.xml new file mode 100644 index 0000000000..04fe453a83 --- /dev/null +++ b/omnipod/src/main/res/drawable/ic_pod_management_activate_pod.xml @@ -0,0 +1,17 @@ + + + + diff --git a/omnipod/src/main/res/drawable/ic_pod_management_deactivate_pod.xml b/omnipod/src/main/res/drawable/ic_pod_management_deactivate_pod.xml new file mode 100644 index 0000000000..d6b053423e --- /dev/null +++ b/omnipod/src/main/res/drawable/ic_pod_management_deactivate_pod.xml @@ -0,0 +1,17 @@ + + + + diff --git a/omnipod/src/main/res/drawable/ic_pod_management_discard_pod.xml b/omnipod/src/main/res/drawable/ic_pod_management_discard_pod.xml new file mode 100644 index 0000000000..1ba380492b --- /dev/null +++ b/omnipod/src/main/res/drawable/ic_pod_management_discard_pod.xml @@ -0,0 +1,26 @@ + + + + + diff --git a/omnipod/src/main/res/drawable/ic_pod_management_play_test_beep.xml b/omnipod/src/main/res/drawable/ic_pod_management_play_test_beep.xml new file mode 100644 index 0000000000..46b82ac9e5 --- /dev/null +++ b/omnipod/src/main/res/drawable/ic_pod_management_play_test_beep.xml @@ -0,0 +1,23 @@ + + + + + + diff --git a/omnipod/src/main/res/drawable/ic_pod_management_pod_history.xml b/omnipod/src/main/res/drawable/ic_pod_management_pod_history.xml new file mode 100644 index 0000000000..eb2372c685 --- /dev/null +++ b/omnipod/src/main/res/drawable/ic_pod_management_pod_history.xml @@ -0,0 +1,17 @@ + + + + diff --git a/omnipod/src/main/res/drawable/ic_pod_management_pulse_log.xml b/omnipod/src/main/res/drawable/ic_pod_management_pulse_log.xml new file mode 100644 index 0000000000..7b1823e7a1 --- /dev/null +++ b/omnipod/src/main/res/drawable/ic_pod_management_pulse_log.xml @@ -0,0 +1,40 @@ + + + + + + + + + + + diff --git a/omnipod/src/main/res/drawable/ic_pod_management_rl_stats.xml b/omnipod/src/main/res/drawable/ic_pod_management_rl_stats.xml new file mode 100644 index 0000000000..09c8eea8b7 --- /dev/null +++ b/omnipod/src/main/res/drawable/ic_pod_management_rl_stats.xml @@ -0,0 +1,41 @@ + + + + + + + + + diff --git a/omnipod/src/main/res/drawable/icon_omnipod_overview_acknowledge_alerts.xml b/omnipod/src/main/res/drawable/icon_omnipod_overview_acknowledge_alerts.xml deleted file mode 100644 index 35a2f6482d..0000000000 --- a/omnipod/src/main/res/drawable/icon_omnipod_overview_acknowledge_alerts.xml +++ /dev/null @@ -1,11 +0,0 @@ - - - - diff --git a/omnipod/src/main/res/drawable/icon_omnipod_overview_pod_management.xml b/omnipod/src/main/res/drawable/icon_omnipod_overview_pod_management.xml deleted file mode 100644 index dc2d89cb31..0000000000 --- a/omnipod/src/main/res/drawable/icon_omnipod_overview_pod_management.xml +++ /dev/null @@ -1,15 +0,0 @@ - - - - - diff --git a/omnipod/src/main/res/drawable/icon_omnipod_overview_refresh_pod_status.xml b/omnipod/src/main/res/drawable/icon_omnipod_overview_refresh_pod_status.xml deleted file mode 100644 index bd3703e076..0000000000 --- a/omnipod/src/main/res/drawable/icon_omnipod_overview_refresh_pod_status.xml +++ /dev/null @@ -1,9 +0,0 @@ - - - - - diff --git a/omnipod/src/main/res/drawable/icon_omnipod_overview_resume_delivery.xml b/omnipod/src/main/res/drawable/icon_omnipod_overview_resume_delivery.xml deleted file mode 100644 index b2d89fe2da..0000000000 --- a/omnipod/src/main/res/drawable/icon_omnipod_overview_resume_delivery.xml +++ /dev/null @@ -1,8 +0,0 @@ - - - - diff --git a/omnipod/src/main/res/drawable/icon_omnipod_overview_set_time.xml b/omnipod/src/main/res/drawable/icon_omnipod_overview_set_time.xml deleted file mode 100644 index 191cddf4fb..0000000000 --- a/omnipod/src/main/res/drawable/icon_omnipod_overview_set_time.xml +++ /dev/null @@ -1,9 +0,0 @@ - - - - diff --git a/omnipod/src/main/res/drawable/icon_omnipod_overview_suspend_delivery.xml b/omnipod/src/main/res/drawable/icon_omnipod_overview_suspend_delivery.xml deleted file mode 100644 index 73fa2635e3..0000000000 --- a/omnipod/src/main/res/drawable/icon_omnipod_overview_suspend_delivery.xml +++ /dev/null @@ -1,8 +0,0 @@ - - - - diff --git a/omnipod/src/main/res/drawable/icon_pod_activity_reset_rileylink_config.xml b/omnipod/src/main/res/drawable/icon_pod_activity_reset_rileylink_config.xml deleted file mode 100644 index 9c3da03055..0000000000 --- a/omnipod/src/main/res/drawable/icon_pod_activity_reset_rileylink_config.xml +++ /dev/null @@ -1,24 +0,0 @@ - - - - - - - - - diff --git a/omnipod/src/main/res/drawable/icon_pod_management_activate_pod.xml b/omnipod/src/main/res/drawable/icon_pod_management_activate_pod.xml deleted file mode 100644 index 214384f5b6..0000000000 --- a/omnipod/src/main/res/drawable/icon_pod_management_activate_pod.xml +++ /dev/null @@ -1,8 +0,0 @@ - - - - diff --git a/omnipod/src/main/res/drawable/icon_pod_management_deactivate_pod.xml b/omnipod/src/main/res/drawable/icon_pod_management_deactivate_pod.xml deleted file mode 100644 index 5a9b273b87..0000000000 --- a/omnipod/src/main/res/drawable/icon_pod_management_deactivate_pod.xml +++ /dev/null @@ -1,8 +0,0 @@ - - - - diff --git a/omnipod/src/main/res/drawable/icon_pod_management_discard_pod.xml b/omnipod/src/main/res/drawable/icon_pod_management_discard_pod.xml deleted file mode 100644 index 775704d4da..0000000000 --- a/omnipod/src/main/res/drawable/icon_pod_management_discard_pod.xml +++ /dev/null @@ -1,13 +0,0 @@ - - - - - diff --git a/omnipod/src/main/res/drawable/icon_pod_management_play_test_beep.xml b/omnipod/src/main/res/drawable/icon_pod_management_play_test_beep.xml deleted file mode 100644 index e80cb36475..0000000000 --- a/omnipod/src/main/res/drawable/icon_pod_management_play_test_beep.xml +++ /dev/null @@ -1,10 +0,0 @@ - - - - - - diff --git a/omnipod/src/main/res/drawable/icon_pod_management_pod_history.xml b/omnipod/src/main/res/drawable/icon_pod_management_pod_history.xml deleted file mode 100644 index 6ba8ddf5bb..0000000000 --- a/omnipod/src/main/res/drawable/icon_pod_management_pod_history.xml +++ /dev/null @@ -1,8 +0,0 @@ - - - - diff --git a/omnipod/src/main/res/drawable/icon_pod_management_pulse_log.xml b/omnipod/src/main/res/drawable/icon_pod_management_pulse_log.xml deleted file mode 100644 index faaa137526..0000000000 --- a/omnipod/src/main/res/drawable/icon_pod_management_pulse_log.xml +++ /dev/null @@ -1,17 +0,0 @@ - - - - - - - - - - - diff --git a/omnipod/src/main/res/drawable/icon_pod_management_rl_stats.xml b/omnipod/src/main/res/drawable/icon_pod_management_rl_stats.xml deleted file mode 100644 index cde8412e8b..0000000000 --- a/omnipod/src/main/res/drawable/icon_pod_management_rl_stats.xml +++ /dev/null @@ -1,24 +0,0 @@ - - - - - - - - - diff --git a/omnipod/src/main/res/layout/omnipod_overview.xml b/omnipod/src/main/res/layout/omnipod_overview.xml index a873bfe104..7b21cf1304 100644 --- a/omnipod/src/main/res/layout/omnipod_overview.xml +++ b/omnipod/src/main/res/layout/omnipod_overview.xml @@ -56,7 +56,8 @@ android:layout_height="wrap_content" android:layout_weight="1.5" android:gravity="end" - android:paddingRight="5dp" + android:paddingStart="5dp" + android:paddingEnd="5dp" android:text="@string/rileylink_status" android:textSize="14sp" /> @@ -76,7 +77,8 @@ android:layout_height="wrap_content" android:layout_weight="1" android:gravity="start" - android:paddingLeft="5dp" + android:paddingStart="5dp" + android:paddingEnd="5dp" android:text="{fa-bluetooth-b}" android:textColor="@android:color/white" android:textSize="14sp" /> @@ -103,7 +105,8 @@ android:layout_height="wrap_content" android:layout_weight="1.5" android:gravity="end" - android:paddingRight="5dp" + android:paddingStart="5dp" + android:paddingEnd="5dp" android:text="@string/omnipod_overview_pod_address" android:textSize="14sp" /> @@ -123,7 +126,8 @@ android:layout_height="wrap_content" android:layout_weight="1" android:gravity="start" - android:paddingLeft="5dp" + android:paddingStart="5dp" + android:paddingEnd="5dp" android:textColor="@android:color/white" android:textSize="14sp" /> @@ -139,7 +143,8 @@ android:layout_height="wrap_content" android:layout_weight="1.5" android:gravity="end" - android:paddingRight="5dp" + android:paddingStart="5dp" + android:paddingEnd="5dp" android:text="@string/omnipod_lot" android:textSize="14sp" /> @@ -159,7 +164,8 @@ android:layout_height="wrap_content" android:layout_weight="1" android:gravity="start" - android:paddingLeft="5dp" + android:paddingStart="5dp" + android:paddingEnd="5dp" android:textColor="@android:color/white" android:textSize="14sp" /> @@ -175,7 +181,8 @@ android:layout_height="wrap_content" android:layout_weight="1.5" android:gravity="end" - android:paddingRight="5dp" + android:paddingStart="5dp" + android:paddingEnd="5dp" android:text="@string/omnipod_tid" android:textSize="14sp" /> @@ -195,7 +202,8 @@ android:layout_height="wrap_content" android:layout_weight="1" android:gravity="start" - android:paddingLeft="5dp" + android:paddingStart="5dp" + android:paddingEnd="5dp" android:textColor="@android:color/white" android:textSize="14sp" /> @@ -211,7 +219,8 @@ android:layout_height="wrap_content" android:layout_weight="1.5" android:gravity="end" - android:paddingRight="5dp" + android:paddingStart="5dp" + android:paddingEnd="5dp" android:text="@string/omnipod_overview_firmware_version" android:textSize="14sp" /> @@ -231,7 +240,8 @@ android:layout_height="wrap_content" android:layout_weight="1" android:gravity="start" - android:paddingLeft="5dp" + android:paddingStart="5dp" + android:paddingEnd="5dp" android:textColor="@android:color/white" android:textSize="14sp" /> @@ -247,7 +257,8 @@ android:layout_height="wrap_content" android:layout_weight="1.5" android:gravity="end" - android:paddingRight="5dp" + android:paddingStart="5dp" + android:paddingEnd="5dp" android:text="@string/omnipod_overview_time_on_pod" android:textSize="14sp" /> @@ -267,7 +278,8 @@ android:layout_height="wrap_content" android:layout_weight="1" android:gravity="start" - android:paddingLeft="5dp" + android:paddingStart="5dp" + android:paddingEnd="5dp" android:textColor="@android:color/white" android:textSize="14sp" /> @@ -284,7 +296,8 @@ android:layout_height="wrap_content" android:layout_weight="1.5" android:gravity="end" - android:paddingRight="5dp" + android:paddingStart="5dp" + android:paddingEnd="5dp" android:text="@string/omnipod_overview_pod_expiry_date" android:textSize="14sp" /> @@ -304,7 +317,8 @@ android:layout_height="wrap_content" android:layout_weight="1" android:gravity="start" - android:paddingLeft="5dp" + android:paddingStart="5dp" + android:paddingEnd="5dp" android:textColor="@android:color/white" android:textSize="14sp" /> @@ -321,7 +335,8 @@ android:layout_height="wrap_content" android:layout_weight="1.5" android:gravity="end" - android:paddingRight="5dp" + android:paddingStart="5dp" + android:paddingEnd="5dp" android:text="@string/omnipod_overview_pod_status" android:textSize="14sp" /> @@ -375,7 +390,8 @@ android:layout_height="wrap_content" android:layout_weight="1.5" android:gravity="end" - android:paddingRight="5dp" + android:paddingStart="5dp" + android:paddingEnd="5dp" android:text="@string/omnipod_overview_last_connection" android:textSize="14sp" /> @@ -395,7 +411,8 @@ android:layout_height="wrap_content" android:layout_weight="1" android:gravity="start" - android:paddingLeft="5dp" + android:paddingStart="5dp" + android:paddingEnd="5dp" android:textColor="@android:color/white" android:textSize="14sp" /> @@ -420,7 +437,8 @@ android:layout_height="wrap_content" android:layout_weight="1.5" android:gravity="end" - android:paddingRight="5dp" + android:paddingStart="5dp" + android:paddingEnd="5dp" android:text="@string/omnipod_overview_last_bolus" android:textSize="14sp" /> @@ -440,7 +458,8 @@ android:layout_height="wrap_content" android:layout_weight="1" android:gravity="start" - android:paddingLeft="5dp" + android:paddingStart="5dp" + android:paddingEnd="5dp" android:textColor="@android:color/white" android:textSize="14sp" /> @@ -465,7 +484,8 @@ android:layout_height="wrap_content" android:layout_weight="1.5" android:gravity="end" - android:paddingRight="5dp" + android:paddingStart="5dp" + android:paddingEnd="5dp" android:text="@string/omnipod_overview_base_basal_rate" android:textSize="14sp" /> @@ -485,7 +505,8 @@ android:layout_height="wrap_content" android:layout_weight="1" android:gravity="start" - android:paddingLeft="5dp" + android:paddingStart="5dp" + android:paddingEnd="5dp" android:textColor="@android:color/white" android:textSize="14sp" /> @@ -510,7 +531,8 @@ android:layout_height="wrap_content" android:layout_weight="1.5" android:gravity="end" - android:paddingRight="5dp" + android:paddingStart="5dp" + android:paddingEnd="5dp" android:text="@string/omnipod_overview_temp_basal_rate" android:textSize="14sp" /> @@ -530,7 +552,8 @@ android:layout_height="wrap_content" android:layout_weight="1" android:gravity="start" - android:paddingLeft="5dp" + android:paddingStart="5dp" + android:paddingEnd="5dp" android:textColor="@android:color/white" android:textSize="14sp" /> @@ -555,7 +578,8 @@ android:layout_height="wrap_content" android:layout_weight="1.5" android:gravity="end" - android:paddingRight="5dp" + android:paddingStart="5dp" + android:paddingEnd="5dp" android:text="@string/omnipod_overview_reservoir" android:textSize="14sp" /> @@ -575,7 +599,8 @@ android:layout_height="wrap_content" android:layout_weight="1" android:gravity="start" - android:paddingLeft="5dp" + android:paddingStart="5dp" + android:paddingEnd="5dp" android:textColor="@android:color/white" android:textSize="14sp" /> @@ -600,7 +625,8 @@ android:layout_height="wrap_content" android:layout_weight="1.5" android:gravity="end" - android:paddingRight="5dp" + android:paddingStart="5dp" + android:paddingEnd="5dp" android:text="@string/omnipod_overview_total_delivered" android:textSize="14sp" /> @@ -620,7 +646,8 @@ android:layout_height="wrap_content" android:layout_weight="1" android:gravity="start" - android:paddingLeft="5dp" + android:paddingStart="5dp" + android:paddingEnd="5dp" android:textColor="@android:color/white" android:textSize="14sp" /> @@ -645,7 +672,8 @@ android:layout_height="wrap_content" android:layout_weight="1.5" android:gravity="end" - android:paddingRight="5dp" + android:paddingStart="5dp" + android:paddingEnd="5dp" android:text="@string/omnipod_overview_errors" android:textSize="14sp" /> @@ -665,7 +693,8 @@ android:layout_height="wrap_content" android:layout_weight="1" android:gravity="start" - android:paddingLeft="5dp" + android:paddingStart="5dp" + android:paddingEnd="5dp" android:textColor="@android:color/white" android:textSize="14sp" /> @@ -690,7 +719,8 @@ android:layout_height="wrap_content" android:layout_weight="1.5" android:gravity="end" - android:paddingRight="5dp" + android:paddingStart="5dp" + android:paddingEnd="5dp" android:text="@string/omnipod_overview_pod_active_alerts" android:textSize="14sp" /> @@ -710,7 +740,8 @@ android:layout_height="wrap_content" android:layout_weight="1" android:gravity="start" - android:paddingLeft="5dp" + android:paddingStart="5dp" + android:paddingEnd="5dp" android:textColor="@android:color/white" android:textSize="14sp" /> @@ -747,10 +778,8 @@ android:layout_width="match_parent" android:layout_height="match_parent" android:layout_weight="1" - android:drawableTop="@drawable/icon_omnipod_overview_refresh_pod_status" + android:drawableTop="@drawable/ic_omnipod_overview_refresh_pod_status" android:drawablePadding="@dimen/omnipod_icon_button_drawable_padding" - android:paddingLeft="0dp" - android:paddingRight="0dp" android:text="@string/omnipod_overview_button_refresh" />