google / google/ground-android
[Code health] Invert control of data collection flow view models
Open
type: code health
- Dominant language
- Kotlin
- Stars
- 293
- Forks
- 149
- Avg merge
- 1d 16h
- Merged PRs (30d)
- 42
Description
Currently, the container's view model (`DataCollectionViewModel`) is responsible for creating and managing the view models of the children tasks. Since these are passed through the constructor, this makes it impossible to restore the view on config change (#2725). Instead, child fragments need to get their own vms, probably from the parent fragment.
@shobhitagarwal1612 @scolsen @anandwana001
Contributor guide
Assessment
This issue has not been assessed yet.