Skip to content
Commit b8b4adb6 authored by Duncan McNamara's avatar Duncan McNamara Committed by Nicolas Pomepuy
Browse files

FileBrowser: fix sort race condition at resume

On some devices, when first fetching the dataset for the browser,
browseImpl will be called during the reSort that is called by
onResume. This means that the reSort starts with a empty dataset,
browseImpl populates it, and reSort finishes by reassigning an
empty set to dataset.value.

In on Resume if the dataset is empty then it will be populated and
sorted by browseImpl, if it is not, then it has already been
populated, but possibly with the wrong sort as resetSort hasn't
been called. Hence in this case reSort should be called just in case
parent 96c57f2a
Loading
Loading
Loading
Pipeline #238001 passed with stage
in 8 minutes and 12 seconds
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment