Skip to content

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

  1. Add a favorite
  2. Delete the folder
  3. Browse it

Alternative

  1. Use a device where Whatsapp is not installed
  2. Browse

Screenshot / video

Screenshot_1587553340

Screenshot_1587553344

Context

App version

Master

Android version

Device model

App mode

Smartphone