Skip to content

Conversation

@aleronarjun
Copy link
Contributor

Modify code logic to handle no connectivity better on refresh by showing the no internet card instantaneously, hiding the refreshing layout and not initiating non required calls to network methods.

Fixes #691
Changes:

The code logic has been modified to handle the issue mentioned.
Screenshots for the change:

Before:
Refreshing the event list (one fully loaded) under no internet:
(This state remains for a long time as the connection methods are called, and finally terminates after 8-10 secs with a toast)

screenshot_1542134680

After making the changes, and refreshing the events list (once fully loaded) under no internet:

screenshot_1542135460

Modify code logic to handle no connectivity better on refresh by showing the no internet card instantaneously, hiding the refreshing layout and not initiating non required calls to network methods.
@aleronarjun aleronarjun changed the title Improve code logic to handle no connectivity better on home screen fix: Improve code logic to handle no connectivity better on home screen Nov 14, 2018
@nikit19 nikit19 merged commit 5e3a9fa into fossasia:development Nov 14, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants