ARK-Builders / ARK-Navigator

Android app for navigation through your data
MIT License
15 stars 15 forks source link

Non-blocking metadata extraction #364

Open kirillt opened 11 months ago

kirillt commented 11 months ago

(Part of #23)

We could reduce the initial wait time before folder opening by turning metadata extraction into a non-blocking process, similar to how we handle preview generation. Currently, a resource missing a preview is represented by a progress circle until the preview is ready. We should aim for the same approach with metadata.

Although, handling metadata can be slightly more complex given its intricate connection with the UI. For instance, depending on the chosen sorting criteria, the process of resource ordering can require metadata. So, if metadata isn't computed yet, we may not be able to sort resources in some cases. We need to thoroughly consider how metadata is intertwined with the UI and how to manage its absence correctly.