Change the stored items in DetailViewModel to LiveData. Remove the need to reset the stored items when a fragment is destroyed.
Change the stored items in DetailViewModel to LiveData. Remove the need to reset the stored items when a fragment is destroyed.