apps-android-wikipedia
apps-android-wikipedia copied to clipboard
Use SavedStateHandle in view models
Pass SavedStateHandle instead of Bundle to the view models. Values provided via an Intent's extras or a fragment's arguments are automatically passed to the state handle in the default view model factory implementation, which eliminates the need to implement a view model factory separately.