It was good. There are some improvements that can assist. to make it more concise and better.
With the help of KTX we can define ViewModel using by viewModels()
viewModel = ViewModelProviders.of(this, SavedStateViewModelFactory(this)).get(ShoppingListViewModel::class.java)
getItems().value!!.add(itemName) // it also don’t notify the observers because of addition, so it make it more elegant it needs to be written in a way that observers can notify properly
May be creating separate list and then updating the livedata by that list
it would be great if we can remove non-null assertions
If we don’t have items it’s good to hide the recyclerview rather than rendering it with nothing