vedangj044 / Frisson

Android app to read reports of UFO sightings
5 stars 2 forks source link

Add loadingState #26

Open vedangj044 opened 3 years ago

vedangj044 commented 3 years ago

I'm submitting a

Current Behaviour:

We have a loader that is displayed till the data is fetched from the API, but there is no support for the situation where loading data is failed due to reasons like slow or no network.

Expected Behaviour:

As we are using paging3 library, it comes with loadStateFlow which can be collected on the activity to show different loading this. We need to show the progress bar while content is loading and retry image button if it fails. When the retry button is clicked it should adapter.retry() function.

Steps to reproduce:

Remove app from recent apps. Turn off internet Open the app Notice the progressbar is displayed indefinitely.

vedangj044 commented 1 year ago

Works on app.internal.innovaccer.com