ARK-Builders / ARK-Builders/Navigator
Incremental updating of resources grid
- Dominant language
- Kotlin
- Stars
- 16
- Forks
- 14
- PR merge metrics
- No merged PRs in 30d
Description
When we switch to `ResourcesGridFragment` from `GalleryFragment`, the resources collection must be refreshed. Because actions in gallery screen could affect the collection (tags removed from some resources). Also, new resources could appear in the folder and also existing resource could get new tags from other devices. That means we can have both additions to and deletions from the collection.
Right now, we refresh the resources collection in the simplest way possible: just clear it and load again. This causes unnecessary thumbnail redrawings. This might be noticeable to a user as flickering.
We should refresh it in smart way: load new collection, calculate the difference, remove disappeared resources and insert new ones.
Contributor guide
Research direction
Start with the transition from GalleryFragment to ResourcesGridFragment and the current resources collection refresh. Compare the newly loaded collection with the existing one, removing disappeared resources and inserting new ones without clearing everything; done means additions and deletions are reflected without unnecessary thumbnail redrawings or flickering.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- android, kotlin
- Domain
- mobile
- Issue type
- Refactor
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100