WorldHealthOrganization / app

COVID-19 App

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Wrong Stats are being displayed when internet connectivity is lost and country is changed

msaini888 opened this issue · comments

Steps to reproduce the behavior:

  1. Launch the app and complete onboarding journey.
  2. Tap on Stats icon in the footer.
  3. Stats for the selected country is displayed to the user.
  4. Switch of mobile internet.
  5. Go to Settings and and change the country from the dropdown.
  6. Tap on Stats again after changing the country.

Expected Behavior
Previous Country Stats should not be loaded for the changed country

Actual Behavior
Stats of previously selected country are being displayed for the newly selected country.

System

  • Device: Huawei Honor 7c
  • OS: Android 8.0
  • App Version: Version 1.0.0-staging(281)

Additional Context

Another observation is that if we change the country by the search option in the dropdown then this bug doesn't occur, it only happens when we change the country by scrolling the country selector dropdown.

Lost_Connectivity_WrongStats.mp4

Checklist:

Will be away for several hours but have proposed the fix above.