5122b0151b549a81b0c8cac9192b6713df0d81ab |
|
28-Mar-2018 |
Ian Lake <ilake@google.com> |
Remove HolderFragment, deprecate ViewModelStores With Support Library 27.1.0+, FragmentActivity and Fragment now implement ViewModelStoreOwner directly, allowing developers to call getViewModelStore() instead of relying on the ViewModelStores.of() APIs. Deprecate ViewModelStores.of() and the HolderFragment it relies on as they are no longer needed. Test: existing tests pass BUG: 72740677 Change-Id: I21334fe915eef0cd5027e3d22a9f44699317c0a6
/frameworks/support/lifecycle/viewmodel/src/main/java/androidx/lifecycle/ViewModelStore.java
|