diff --git a/app/src/main/kotlin/de/timklge/karooheadwind/KarooHeadwindExtension.kt b/app/src/main/kotlin/de/timklge/karooheadwind/KarooHeadwindExtension.kt index 77728c2..d289248 100644 --- a/app/src/main/kotlin/de/timklge/karooheadwind/KarooHeadwindExtension.kt +++ b/app/src/main/kotlin/de/timklge/karooheadwind/KarooHeadwindExtension.kt @@ -131,6 +131,8 @@ class KarooHeadwindExtension : KarooExtension("karoo-headwind", "1.1.1") { val data = jsonWithUnknownKeys.decodeFromString(responseString) saveCurrentData(applicationContext, data) + saveWidgetSettings(applicationContext, HeadwindWidgetSettings(currentForecastHourOffset = 0)) + Log.d(TAG, "Got updated weather info: $data") } catch(e: Exception){ Log.e(TAG, "Failed to read current weather data", e)