From 43f8e6f1a7ddb2e392c987e653447b26e3c60d28 Mon Sep 17 00:00:00 2001 From: Brad Leege Date: Tue, 16 Feb 2016 18:52:29 -0600 Subject: [PATCH] [android] #3897 - Changing initial flush delay time to 10 seconds --- .../com/mapbox/mapboxsdk/telemetry/MapboxEventManager.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/platform/android/MapboxGLAndroidSDK/src/main/java/com/mapbox/mapboxsdk/telemetry/MapboxEventManager.java b/platform/android/MapboxGLAndroidSDK/src/main/java/com/mapbox/mapboxsdk/telemetry/MapboxEventManager.java index 81b36781d..205cc73e9 100644 --- a/platform/android/MapboxGLAndroidSDK/src/main/java/com/mapbox/mapboxsdk/telemetry/MapboxEventManager.java +++ b/platform/android/MapboxGLAndroidSDK/src/main/java/com/mapbox/mapboxsdk/telemetry/MapboxEventManager.java @@ -73,6 +73,7 @@ public class MapboxEventManager { private String mapboxSessionId = null; private long mapboxSessionIdLastSet = 0; private static long hourInMillis = 1000 * 60 * 60; + private static long flushDelayInitialInMillis = 1000 * 10; // 10 Seconds private static long flushDelayInMillis = 1000 * 60 * 2; // 2 Minutes private static final int SESSION_ID_ROTATION_HOURS = 24; @@ -188,7 +189,7 @@ public class MapboxEventManager { // Manage Timer Flush timer = new Timer(); - timer.schedule(new FlushEventsTimerTask(), flushDelayInMillis, flushDelayInMillis); + timer.schedule(new FlushEventsTimerTask(), flushDelayInitialInMillis, flushDelayInMillis); } else { Log.i(TAG, "Shutting Telemetry Down"); // Shut It Down