android-build-an-app-architecture-components icon indicating copy to clipboard operation
android-build-an-app-architecture-components copied to clipboard

Typo: WeahterDao

Open geekarist opened this issue 7 years ago • 0 comments

There is a typo in https://codelabs.developers.google.com/codelabs/build-app-with-arch-components/index.html?index=..%2F..%2Findex#11:

The WeatherDao returns the data you want and you could have the DetailActivityViewModel communicate directly with the WeahterDao. But that defeats the whole point of the repository class; the repository should be the single source of truth for all data operations. Therefore the DetailActivityViewModel will get this data from the SunshineRepository. The SunshineRepository will, in turn, ask the WeatherDao for the LiveData:

geekarist avatar Oct 04 '17 16:10 geekarist