Update core/data/src/main/java/com/google/samples/apps/nowinandroid/core/data/repository/OfflineFirstNewsRepository.kt

Co-authored-by: Don Turner <dturner@users.noreply.github.com>
pull/649/head
Adetunji Dahunsi 2 years ago committed by GitHub
parent 05be2855d8
commit 022cd92f4c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -75,7 +75,7 @@ class OfflineFirstNewsRepository @Inject constructor(
modelDeleter = newsResourceDao::deleteNewsResources, modelDeleter = newsResourceDao::deleteNewsResources,
modelUpdater = { changedIds -> modelUpdater = { changedIds ->
val userData = niaPreferencesDataSource.userData.first() val userData = niaPreferencesDataSource.userData.first()
val hasOnBoarded = userData.shouldHideOnboarding val hasOnboarded = userData.shouldHideOnboarding
val followedTopicIds = userData.followedTopics val followedTopicIds = userData.followedTopics
// TODO: Make this more efficient, there is no need to retrieve populated // TODO: Make this more efficient, there is no need to retrieve populated

Loading…
Cancel
Save