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
This commit is contained in:
Luis Vidal 2016-04-06 15:00:36 -07:00
parent d8c2556c31
commit 2eddb5f7c7
1 changed files with 1 additions and 0 deletions

View File

@ -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");
}
};