WordPress-Android
WordPress-Android copied to clipboard
My Site Dashboard - Offline Mode - No network snackbar instead of stale dashboard feed message
Expected behavior
When there is no network available, the stale dashboard feed message and snackbar should be shown instead of the no network snackbar. (TBD)
Actual behavior
In a specific scenario (mentioned below), no network snackbar is shown instead of the stale dashboard feed message and snackbar.
Steps to reproduce the behavior
- User opens the app, the app is in foreground, user is looking at My Site.
- User puts the device on airplane mode.
- The NO CONNECTION orange dot bottom banner is automatically shown.
- User triggers pull-to-refresh.
- The dashboard feed is not updated.
- ⚠️ The dashboard feed Stale Message is not shown.
- ⚠️ A There is no network available toast is shown. However, the dashboard feed Snackbar Message should be shown instead.
- The NO CONNECTION orange dot bottom banner is still shown.
- User puts the device out of airplane mode.
- The NO CONNECTION orange dot bottom banner automatically disappears.
- User triggers pull-to-refresh.
- The dashboard feed is updated.
⚠️ Stale Message not shown and the Snackbar Message is not shown as well.
Reference: p5T066-2Vl-p2#comment-11000
I would work on this
@ashiagr kindly inform me of what dashboard feed Stale Message is, Thanks.
Thanks for your interest in the issue, @mikailyusuf! IIRC we did not pursue the issue due to conflicting no network and stale message snackbars.
Do you mind taking a look at this issue instead?
If not, I can help you find another task that might be of interest to you.
Thanks @ashiagr , I woulod work on it.