From 028df70fe7985cc94f3a63d55e6f9869e57e30b8 Mon Sep 17 00:00:00 2001 From: Tim Kluge Date: Thu, 24 Apr 2025 19:42:29 +0200 Subject: [PATCH] Increase forecast widget update distance to 500m --- .../de/timklge/karooheadwind/datatypes/ForecastDataType.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/main/kotlin/de/timklge/karooheadwind/datatypes/ForecastDataType.kt b/app/src/main/kotlin/de/timklge/karooheadwind/datatypes/ForecastDataType.kt index 4199186..ced984d 100644 --- a/app/src/main/kotlin/de/timklge/karooheadwind/datatypes/ForecastDataType.kt +++ b/app/src/main/kotlin/de/timklge/karooheadwind/datatypes/ForecastDataType.kt @@ -202,7 +202,7 @@ abstract class ForecastDataType(private val karooSystem: KarooSystemService, typ if (oldDistance == null && newDistance == null) return@distinctUntilChanged true if (oldDistance == null || newDistance == null) return@distinctUntilChanged false - abs(oldDistance - newDistance) < 100 + abs(oldDistance - newDistance) < 500 } ) { weatherData, settings, widgetSettings, heading, upcomingRoute -> StreamData(