Skip to content

No internet case not handled properly in the main activity #691

@aleronarjun

Description

@aleronarjun

Description

Once the events on the main screen have been loaded, if the internet connection is lost, and the user refreshes the list, the code makes the request to the server, hence the SwipeRefreshLayout keeps refreshing for a while (about 8-10 secs), after which a toast appears: "Error fetching events"

To Reproduce

Steps to reproduce the behavior:

  1. Go to main activity with the internet connection working, let it load all events.
  2. Turn on flight mode.
  3. Refresh the events list.

Expected behavior

The no internet card should appear instantaneously, the app should not initiate call to the server (via retryLoadLocationEvents() method), and the swipe refresh layout should stop refreshing.

Screenshots

screenshot_1542134680

Would you like to work on the issue?
Yes, working on it.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions