|
|
@ -40,6 +40,7 @@ class TargetWidget(
|
|
|
|
override fun refreshData(view: View) {
|
|
|
|
override fun refreshData(view: View) {
|
|
|
|
val widgetView = view as GraphWidgetView
|
|
|
|
val widgetView = view as GraphWidgetView
|
|
|
|
widgetView.setBackgroundAlpha(preferedBackgroundAlpha)
|
|
|
|
widgetView.setBackgroundAlpha(preferedBackgroundAlpha)
|
|
|
|
|
|
|
|
if (preferedBackgroundAlpha >= 255) widgetView.setShadowAlpha(0x4f)
|
|
|
|
val chart = (widgetView.dataView as TargetChart)
|
|
|
|
val chart = (widgetView.dataView as TargetChart)
|
|
|
|
with(TargetCard.RefreshTask(context, habit, prefs.firstWeekday, chart, null)) {
|
|
|
|
with(TargetCard.RefreshTask(context, habit, prefs.firstWeekday, chart, null)) {
|
|
|
|
onPreExecute()
|
|
|
|
onPreExecute()
|
|
|
|