From bf72d766e91cec69afd6d926efb056845eccf821 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C5=81ukasz=20Paczos?= Date: Mon, 16 Apr 2018 17:33:58 +0200 Subject: [PATCH] [LLP] - initialize with a stale state --- .../mapboxsdk/plugins/locationlayer/StaleStateManager.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/plugin-locationlayer/src/main/java/com/mapbox/mapboxsdk/plugins/locationlayer/StaleStateManager.java b/plugin-locationlayer/src/main/java/com/mapbox/mapboxsdk/plugins/locationlayer/StaleStateManager.java index 5558832de..3d9fdcb35 100644 --- a/plugin-locationlayer/src/main/java/com/mapbox/mapboxsdk/plugins/locationlayer/StaleStateManager.java +++ b/plugin-locationlayer/src/main/java/com/mapbox/mapboxsdk/plugins/locationlayer/StaleStateManager.java @@ -14,13 +14,14 @@ class StaleStateManager { private final OnLocationStaleListener innerOnLocationStaleListeners; private final Handler handler; - private boolean isStale; + private boolean isStale = true; private long delayTime; StaleStateManager(OnLocationStaleListener innerListener, long delayTime) { innerOnLocationStaleListeners = innerListener; this.delayTime = delayTime; handler = new Handler(); + innerOnLocationStaleListeners.onStaleStateChange(true); } private Runnable staleStateRunnable = new Runnable() {