aboutsummaryrefslogtreecommitdiffstats
path: root/cm/lib
diff options
context:
space:
mode:
authorLuis Vidal <lvidal@cyngn.com>2016-04-06 15:00:36 -0700
committerLuis Vidal <lvidal@cyngn.com>2016-04-06 17:07:09 -0700
commit2eddb5f7c706d37004e06ecd5c39d0f3ab724f55 (patch)
tree7eb53eee355d7087b0a3e40f51bc4bb4556baa04 /cm/lib
parentd8c2556c312e30e62872b2de62654ba703324a25 (diff)
downloadvendor_cmsdk-2eddb5f7c706d37004e06ecd5c39d0f3ab724f55.zip
vendor_cmsdk-2eddb5f7c706d37004e06ecd5c39d0f3ab724f55.tar.gz
vendor_cmsdk-2eddb5f7c706d37004e06ecd5c39d0f3ab724f55.tar.bz2
Reset timer when a new weather service provider is selected
If a new weather service provider is selected, reset the timer so the newly selected provider can process the weather update requests Change-Id: I2d16000b0eb987c6d0985b465af3259a3619d8ef TICKET: CYNGNOS-2364
Diffstat (limited to 'cm/lib')
-rw-r--r--cm/lib/main/java/org/cyanogenmod/platform/internal/CMWeatherManagerService.java1
1 files changed, 1 insertions, 0 deletions
diff --git a/cm/lib/main/java/org/cyanogenmod/platform/internal/CMWeatherManagerService.java b/cm/lib/main/java/org/cyanogenmod/platform/internal/CMWeatherManagerService.java
index c5f78d6..faab108 100644
--- a/cm/lib/main/java/org/cyanogenmod/platform/internal/CMWeatherManagerService.java
+++ b/cm/lib/main/java/org/cyanogenmod/platform/internal/CMWeatherManagerService.java
@@ -355,6 +355,7 @@ public class CMWeatherManagerService extends SystemService{
mIsWeatherProviderServiceBound = false;
//We can't talk to the current service anyway...
mIsProcessingRequest = false;
+ mLastWeatherUpdateRequestTimestamp = -REQUEST_THRESHOLD_MILLIS;
Slog.d(TAG, "Connection with " + name.flattenToString() + " has been closed");
}
};