android / codelab-android-datastore

Apache License 2.0
227 stars 105 forks source link

Mixup between UserPreferences and Preferences in chapter 6 #37

Closed Tommy0304 closed 2 years ago

Tommy0304 commented 3 years ago

class UserPreferencesRepository( private val userPreferencesStore: DataStore, <-- this. should be Preferences context: Context ) { ... }

also, hard to follow. The student does not know where to insert the new code, therefore it leads to unexpected errors

mmoczkowski commented 2 years ago

Thank you, this is noted, fix is underway. Closing in favor of #45 which has better description.