Loading app/src/main/java/org/lineageos/openweathermapprovider/OpenWeatherMapProviderService.java +0 −9 Original line number Diff line number Diff line Loading @@ -85,15 +85,6 @@ public class OpenWeatherMapProviderService extends WeatherProviderService int requestType = requestInfo.getRequestType(); Logging.logd("Received request type " + requestType); if (((requestType == RequestInfo.TYPE_WEATHER_BY_GEO_LOCATION_REQ && isSameGeoLocation(requestInfo.getLocation(), mLastLocation)) || (requestType == RequestInfo.TYPE_WEATHER_BY_WEATHER_LOCATION_REQ && isSameWeatherLocation(requestInfo.getWeatherLocation(), mLastWeatherLocation))) && wasRequestSubmittedTooSoon()) { request.reject(LineageWeatherManager.RequestStatus.SUBMITTED_TOO_SOON); return; } switch (requestType) { case RequestInfo.TYPE_WEATHER_BY_GEO_LOCATION_REQ: case RequestInfo.TYPE_WEATHER_BY_WEATHER_LOCATION_REQ: Loading Loading
app/src/main/java/org/lineageos/openweathermapprovider/OpenWeatherMapProviderService.java +0 −9 Original line number Diff line number Diff line Loading @@ -85,15 +85,6 @@ public class OpenWeatherMapProviderService extends WeatherProviderService int requestType = requestInfo.getRequestType(); Logging.logd("Received request type " + requestType); if (((requestType == RequestInfo.TYPE_WEATHER_BY_GEO_LOCATION_REQ && isSameGeoLocation(requestInfo.getLocation(), mLastLocation)) || (requestType == RequestInfo.TYPE_WEATHER_BY_WEATHER_LOCATION_REQ && isSameWeatherLocation(requestInfo.getWeatherLocation(), mLastWeatherLocation))) && wasRequestSubmittedTooSoon()) { request.reject(LineageWeatherManager.RequestStatus.SUBMITTED_TOO_SOON); return; } switch (requestType) { case RequestInfo.TYPE_WEATHER_BY_GEO_LOCATION_REQ: case RequestInfo.TYPE_WEATHER_BY_WEATHER_LOCATION_REQ: Loading