summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrad Leege <bleege@gmail.com>2016-02-16 18:52:29 -0600
committerBrad Leege <bleege@gmail.com>2016-02-18 11:23:34 -0600
commit43f8e6f1a7ddb2e392c987e653447b26e3c60d28 (patch)
treee644ab614cc11885644670a0e1701d66d9035fc7
parent7c1cef45e326b22b7de3465b086d8f237c2fc034 (diff)
downloadqtlocation-mapboxgl-43f8e6f1a7ddb2e392c987e653447b26e3c60d28.tar.gz
[android] #3897 - Changing initial flush delay time to 10 seconds
-rw-r--r--platform/android/MapboxGLAndroidSDK/src/main/java/com/mapbox/mapboxsdk/telemetry/MapboxEventManager.java3
1 files changed, 2 insertions, 1 deletions
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 81b36781d6..205cc73e9c 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