ground-android icon indicating copy to clipboard operation
ground-android copied to clipboard

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

Open gino-m opened this issue 1 year ago • 0 comments

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

gino-m avatar Sep 22 '24 17:09 gino-m