State issues when a favorite doesn't exist (anymore)
Description
There are multiple issues when a favorite points to a folder that doesn't exist anymore:
- Description is empty on the list / grid
- The activity never escapes the loading state
The later is due to filesFlow
never closing because the MediaBrowser
never sens the onBrowseEnd
callback.
The worst part is that it happens with the WhatsApp favorite. Maybe we should not add it if the folder doesn't exist on the device.
Expected behavior
Actual behavior
Steps to reproduce
- Add a favorite
- Delete the folder
- Browse it
Alternative
- Use a device where Whatsapp is not installed
- Browse
Screenshot / video
Context
App version
Master
Android version
Device model
App mode
Smartphone