google / google/ground-android

[Code health] Invert control of data collection flow view models

Open
#2,760 0 comments 0 reactions 0 assignees View on GitHub
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

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.