googlecodelabs / android-build-an-app-architecture-components

Other
266 stars 133 forks source link

Typo: WeahterDao #4

Open geekarist opened 6 years ago

geekarist commented 6 years ago

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: