From 88ee0178dd74d831ae46c7f02c1bfddb92c04dff Mon Sep 17 00:00:00 2001 From: Guardiola31337 Date: Thu, 29 Mar 2018 17:33:42 +0200 Subject: [PATCH] fix crash when sticky service is recreated (making it not sticky for now) --- .../java/com/mapbox/android/telemetry/TelemetryService.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libtelemetry/src/main/java/com/mapbox/android/telemetry/TelemetryService.java b/libtelemetry/src/main/java/com/mapbox/android/telemetry/TelemetryService.java index 4af7f50d4..4df9e7be0 100644 --- a/libtelemetry/src/main/java/com/mapbox/android/telemetry/TelemetryService.java +++ b/libtelemetry/src/main/java/com/mapbox/android/telemetry/TelemetryService.java @@ -46,7 +46,7 @@ public void onCreate() { @Override public int onStartCommand(Intent intent, int flags, int startId) { enableTelemetryLocationState(intent); - return START_STICKY; + return START_NOT_STICKY; } @Nullable