Widget: test for running AAPS
This commit is contained in:
parent
3870ebaa53
commit
63819bb64e
1 changed files with 11 additions and 9 deletions
|
@ -112,6 +112,7 @@ class Widget : AppWidgetProvider() {
|
||||||
views.setInt(R.id.widget_layout, "setBackgroundColor", Color.argb(alpha, 0, 0, 0))
|
views.setInt(R.id.widget_layout, "setBackgroundColor", Color.argb(alpha, 0, 0, 0))
|
||||||
|
|
||||||
handler.post {
|
handler.post {
|
||||||
|
if (config.appInitialized) {
|
||||||
updateBg(views)
|
updateBg(views)
|
||||||
updateTemporaryBasal(views)
|
updateTemporaryBasal(views)
|
||||||
updateExtendedBolus(views)
|
updateExtendedBolus(views)
|
||||||
|
@ -123,6 +124,7 @@ class Widget : AppWidgetProvider() {
|
||||||
appWidgetManager.updateAppWidget(appWidgetId, views)
|
appWidgetManager.updateAppWidget(appWidgetId, views)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
private fun updateBg(views: RemoteViews) {
|
private fun updateBg(views: RemoteViews) {
|
||||||
val units = profileFunction.getUnits()
|
val units = profileFunction.getUnits()
|
||||||
|
|
Loading…
Reference in a new issue