Increase forecast widget update distance to 500m
This commit is contained in:
parent
ae99b60330
commit
028df70fe7
@ -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 true
|
||||||
if (oldDistance == null || newDistance == null) return@distinctUntilChanged false
|
if (oldDistance == null || newDistance == null) return@distinctUntilChanged false
|
||||||
|
|
||||||
abs(oldDistance - newDistance) < 100
|
abs(oldDistance - newDistance) < 500
|
||||||
}
|
}
|
||||||
) { weatherData, settings, widgetSettings, heading, upcomingRoute ->
|
) { weatherData, settings, widgetSettings, heading, upcomingRoute ->
|
||||||
StreamData(
|
StreamData(
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user