From 1302aa73870fa7859ec088c9c44e98045bbe2134 Mon Sep 17 00:00:00 2001 From: osodebailar Date: Sat, 7 May 2022 16:46:17 +0200 Subject: [PATCH 1/4] error dialog follows light and night theme --- .../nightscout/androidaps/dialogs/ErrorDialog.kt | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/core/src/main/java/info/nightscout/androidaps/dialogs/ErrorDialog.kt b/core/src/main/java/info/nightscout/androidaps/dialogs/ErrorDialog.kt index 92de3321a1..bf36db39d0 100644 --- a/core/src/main/java/info/nightscout/androidaps/dialogs/ErrorDialog.kt +++ b/core/src/main/java/info/nightscout/androidaps/dialogs/ErrorDialog.kt @@ -1,6 +1,7 @@ package info.nightscout.androidaps.dialogs import android.content.Context +import android.content.res.Resources import android.os.Bundle import android.os.Handler import android.os.HandlerThread @@ -15,10 +16,10 @@ import info.nightscout.androidaps.core.R import info.nightscout.androidaps.core.databinding.DialogErrorBinding import info.nightscout.androidaps.database.entities.UserEntry.Action import info.nightscout.androidaps.database.entities.UserEntry.Sources -import info.nightscout.shared.logging.AAPSLogger import info.nightscout.androidaps.logging.UserEntryLogger import info.nightscout.androidaps.services.AlarmSoundServiceHelper import info.nightscout.androidaps.utils.T +import info.nightscout.shared.logging.AAPSLogger import javax.inject.Inject class ErrorDialog : DaggerDialogFragment() { @@ -41,8 +42,13 @@ class ErrorDialog : DaggerDialogFragment() { // onDestroyView. private val binding get() = _binding!! - override fun onCreateView(inflater: LayoutInflater, container: ViewGroup?, - savedInstanceState: Bundle?): View { + override fun onCreateView( + inflater: LayoutInflater, container: ViewGroup?, + savedInstanceState: Bundle? + ): View { + val theme: Resources.Theme? = context?.theme + theme?.applyStyle(R.style.AppTheme_NoActionBar, true) + dialog?.window?.requestFeature(Window.FEATURE_NO_TITLE) dialog?.window?.setSoftInputMode(WindowManager.LayoutParams.SOFT_INPUT_STATE_HIDDEN) isCancelable = true From bf1c5500aa1ef02d2010bb65cfd34500b396c113 Mon Sep 17 00:00:00 2001 From: osodebailar Date: Sat, 7 May 2022 16:53:45 +0200 Subject: [PATCH 2/4] quality level color by attribute --- app/src/main/res/drawable/ic_baseline_warning_24_yellow.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/main/res/drawable/ic_baseline_warning_24_yellow.xml b/app/src/main/res/drawable/ic_baseline_warning_24_yellow.xml index 2eededf7fc..4cf10d22f1 100644 --- a/app/src/main/res/drawable/ic_baseline_warning_24_yellow.xml +++ b/app/src/main/res/drawable/ic_baseline_warning_24_yellow.xml @@ -1,4 +1,4 @@ - From 60b8c0ffcc30f94341c9ba1ed869e3d8fbb60c4a Mon Sep 17 00:00:00 2001 From: Andrei Vereha Date: Sat, 7 May 2022 19:05:46 +0200 Subject: [PATCH 3/4] more logs --- .../plugins/pump/omnipod/dash/OmnipodDashPumpPlugin.kt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/omnipod-dash/src/main/java/info/nightscout/androidaps/plugins/pump/omnipod/dash/OmnipodDashPumpPlugin.kt b/omnipod-dash/src/main/java/info/nightscout/androidaps/plugins/pump/omnipod/dash/OmnipodDashPumpPlugin.kt index 571eda4c40..d163c9d4c3 100644 --- a/omnipod-dash/src/main/java/info/nightscout/androidaps/plugins/pump/omnipod/dash/OmnipodDashPumpPlugin.kt +++ b/omnipod-dash/src/main/java/info/nightscout/androidaps/plugins/pump/omnipod/dash/OmnipodDashPumpPlugin.kt @@ -879,7 +879,7 @@ class OmnipodDashPumpPlugin @Inject constructor( val historyEntry = history.getById(activeCommand.historyId) aapsLogger.debug( LTag.PUMP, - "pumpSyncTempBasal: absoluteRate=$absoluteRate, durationInMinutes=$durationInMinutes" + "pumpSyncTempBasal: absoluteRate=$absoluteRate, durationInMinutes=$durationInMinutes pumpId=${historyEntry.pumpId()}" ) val ret = pumpSync.syncTemporaryBasalWithPumpId( timestamp = historyEntry.createdAt, @@ -1374,7 +1374,7 @@ class OmnipodDashPumpPlugin @Inject constructor( PumpType.OMNIPOD_DASH, serialNumber() ) - aapsLogger.info(LTag.PUMP, "syncStopTemporaryBasalWithPumpId ret=$ret") + aapsLogger.info(LTag.PUMP, "syncStopTemporaryBasalWithPumpId ret=$ret pumpId=${historyEntry.pumpId()}") podStateManager.tempBasal = null } rxBus.send(EventDismissNotification(Notification.OMNIPOD_TBR_ALERTS)) From e01647d496e405d3ae9617ae76f353147181ec02 Mon Sep 17 00:00:00 2001 From: Milos Kozak Date: Sun, 8 May 2022 23:11:10 +0200 Subject: [PATCH 4/4] Wear: fix DigitalStyle watchface --- .idea/codeStyles/Project.xml | 4 ++ .../nightscout/androidaps/utils/DateUtil.kt | 8 +++- .../androidaps/watchfaces/BaseWatchFace.kt | 44 ++++++++++--------- .../androidaps/watchfaces/CircleWatchface.kt | 34 +++----------- .../watchfaces/DigitalStyleWatchface.kt | 11 ++--- .../watchfaces/SteampunkWatchface.kt | 2 +- .../layout-notround/activity_digitalstyle.xml | 26 +++++++---- .../layout-round/activity_digitalstyle.xml | 28 +++++++----- wear/src/main/res/values/strings.xml | 13 ++++++ wear/src/main/res/xml/preferences.xml | 10 ++--- .../xml/watch_face_configuration_bigchart.xml | 5 +-- .../xml/watch_face_configuration_circle.xml | 5 +-- .../xml/watch_face_configuration_cockpit.xml | 4 +- .../watch_face_configuration_digitalstyle.xml | 12 ++--- .../res/xml/watch_face_configuration_home.xml | 9 ++-- .../xml/watch_face_configuration_home2.xml | 9 ++-- .../watch_face_configuration_largehome.xml | 9 ++-- .../xml/watch_face_configuration_nochart.xml | 5 +-- .../watch_face_configuration_steampunk.xml | 4 +- 19 files changed, 126 insertions(+), 116 deletions(-) diff --git a/.idea/codeStyles/Project.xml b/.idea/codeStyles/Project.xml index 03c1a4dff8..a9c3d0e4d9 100644 --- a/.idea/codeStyles/Project.xml +++ b/.idea/codeStyles/Project.xml @@ -9,11 +9,15 @@