plaid icon indicating copy to clipboard operation
plaid copied to clipboard

[Bug] ViewModels touch resource like string resource

Open XinyueZ opened this issue 5 years ago • 0 comments

I hope it has cared.

According to Arch-Component the ViewModels would be stored and retained within the scope of some LifecycleOwners like Activity or Fragment. That means anytime the Owner is killed and re-built the view-model will be reused, the same instance of view-model. For example, local(country or language) of the device has been changed, the Activity might be destroyed and recreated, the view-model will be still the one like before-destroy.

https://issuetracker.google.com/u/1/issues/111961971 The same issue has been as PR fixed and logged at Sunflower project

XinyueZ avatar Aug 02 '18 09:08 XinyueZ