Skip to content

PlacesListener.onPlacesFailure called twice on PlacesException #4

@freshollie

Description

@freshollie

Hi,

Thanks for this great library, I just want to know if it was intended that onPlacesFailure is called twice when a PlacesException occurs?

I found this functionality a little confusing at first, but looking at AbstractPlaces it seems to make sense.

 } catch (PlacesException e) {
            exception = e;
            dispatchOnFailure(e); // Is this necessary
            return null;
 protected void onPostExecute(List<Place> places) {
        if (places == null) {
            dispatchOnFailure(exception); // when its called here later
        } else {
            dispatchOnFinished();
        }
    }

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions