Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 7ebd0973 authored by Jonathan Klee's avatar Jonathan Klee
Browse files

Remove the filtering part of requests

parent cc48f202
Loading
Loading
Loading
Loading
+0 −9
Original line number Diff line number Diff line
@@ -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: