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

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

Remove the filtering part of requests

parent a33f2183
Loading
Loading
Loading
Loading
+0 −9
Original line number Original line Diff line number Diff line
@@ -85,15 +85,6 @@ public class OpenWeatherMapProviderService extends WeatherProviderService
        int requestType = requestInfo.getRequestType();
        int requestType = requestInfo.getRequestType();
        Logging.logd("Received request type " + requestType);
        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) {
        switch (requestType) {
            case RequestInfo.TYPE_WEATHER_BY_GEO_LOCATION_REQ:
            case RequestInfo.TYPE_WEATHER_BY_GEO_LOCATION_REQ:
            case RequestInfo.TYPE_WEATHER_BY_WEATHER_LOCATION_REQ:
            case RequestInfo.TYPE_WEATHER_BY_WEATHER_LOCATION_REQ: