ResoCoder / forecast-mvvm-android-kotlin

Forecast MVVM app as found in the free course.
https://www.youtube.com/playlist?list=PLB6lc7nQ1n4jTLDyU2muTBo8xk0dg0D_w
339 stars 163 forks source link

Bug in initWeatherData #7

Closed EkeKoseoglu closed 5 years ago

EkeKoseoglu commented 5 years ago

Queries that return LiveData, are working asynchronously, so weahterDao.getLocation().value statement in the repository returns always null. That's why isFetchCurrentNeeded is never triggered.