Fixed
Status Update
Comments
ap...@google.com <ap...@google.com> #2
Note for dev team to check: If this isn't an error, CameraX should not log.
jb...@google.com <jb...@google.com> #3
Hello,
Thanks for filing this issue, this issue can be safely ignored - we have a todo for removing unnecessarily logging. This should be fixed shortly.
If there are other issues, please let us know.
Description
Now that we have CreationExtras for creating ViewModels via a ViewModelProvider, it would be nice if we could simplify the use of it even further particular for simple cases.
The creation extra has all of the information needed to make a ViewModel and by providing arguments to through extras you can instantiate ViewModels with specified values.
We can create a simple factory that associates a ViewModel class with a lambda and leverages CreationExtras to easily instantiate the class appropriately.