diff options
author | Luis Vidal <lvidal@cyngn.com> | 2016-06-08 11:50:55 -0700 |
---|---|---|
committer | Luis Vidal <lvidal@cyngn.com> | 2016-06-08 11:50:55 -0700 |
commit | d9c5b0a5ffc9a40992e9297b7d3f28ee4c701c39 (patch) | |
tree | 2ac1d928b0b25ba3efecd60871a169a59fb9516e /src | |
parent | e28037aa89b5a7328d986f8001665ef41bf2309d (diff) | |
download | android_packages_apps_LockClock-d9c5b0a5ffc9a40992e9297b7d3f28ee4c701c39.tar.gz android_packages_apps_LockClock-d9c5b0a5ffc9a40992e9297b7d3f28ee4c701c39.tar.bz2 android_packages_apps_LockClock-d9c5b0a5ffc9a40992e9297b7d3f28ee4c701c39.zip |
Report correct status if failed to process weather update request
onNewWeatherRequest() was sending MSG_WEATHER_REQUEST_FAILED
with no arguments when the request failed, causing endless
weather update requests. Fix this by reporting status FAILED
when all options to process the request were exhausted
Change-Id: I821b86ebbab97664aa0d15650a2b3ba25f143e99
TICKET: CYNGNOS-2941
Diffstat (limited to 'src')
-rw-r--r-- | src/com/cyanogenmod/lockclock/weather/WeatherUpdateService.java | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/com/cyanogenmod/lockclock/weather/WeatherUpdateService.java b/src/com/cyanogenmod/lockclock/weather/WeatherUpdateService.java index fc652b1..1fd6f70 100644 --- a/src/com/cyanogenmod/lockclock/weather/WeatherUpdateService.java +++ b/src/com/cyanogenmod/lockclock/weather/WeatherUpdateService.java @@ -303,7 +303,8 @@ public class WeatherUpdateService extends Service { if (D) Log.d(TAG, "Returning cached weather data [ " + cachedInfo.toString()+ " ]"); } else { - mHandler.obtainMessage(MSG_WEATHER_REQUEST_FAILED).sendToTarget(); + mHandler.obtainMessage(MSG_WEATHER_REQUEST_FAILED, + CMWeatherManager.RequestStatus.FAILED, 0).sendToTarget(); } } } |