Widget: test for running AAPS
This commit is contained in:
parent
3870ebaa53
commit
63819bb64e
1 changed files with 11 additions and 9 deletions
|
@ -112,15 +112,17 @@ 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 {
|
||||||
updateBg(views)
|
if (config.appInitialized) {
|
||||||
updateTemporaryBasal(views)
|
updateBg(views)
|
||||||
updateExtendedBolus(views)
|
updateTemporaryBasal(views)
|
||||||
updateIobCob(views)
|
updateExtendedBolus(views)
|
||||||
updateTemporaryTarget(views)
|
updateIobCob(views)
|
||||||
updateProfile(views)
|
updateTemporaryTarget(views)
|
||||||
updateSensitivity(views)
|
updateProfile(views)
|
||||||
// Instruct the widget manager to update the widget
|
updateSensitivity(views)
|
||||||
appWidgetManager.updateAppWidget(appWidgetId, views)
|
// Instruct the widget manager to update the widget
|
||||||
|
appWidgetManager.updateAppWidget(appWidgetId, views)
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue