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:
parent
d8c2556c31
commit
2eddb5f7c7
|
@ -355,6 +355,7 @@ public class CMWeatherManagerService extends SystemService{
|
||||||
mIsWeatherProviderServiceBound = false;
|
mIsWeatherProviderServiceBound = false;
|
||||||
//We can't talk to the current service anyway...
|
//We can't talk to the current service anyway...
|
||||||
mIsProcessingRequest = false;
|
mIsProcessingRequest = false;
|
||||||
|
mLastWeatherUpdateRequestTimestamp = -REQUEST_THRESHOLD_MILLIS;
|
||||||
Slog.d(TAG, "Connection with " + name.flattenToString() + " has been closed");
|
Slog.d(TAG, "Connection with " + name.flattenToString() + " has been closed");
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in New Issue