android / codelab-android-datastore

Apache License 2.0
228 stars 105 forks source link

wrong constructor parameter name #58

Closed yogaboyCZ closed 2 years ago

yogaboyCZ commented 2 years ago

in material U use class UserPreferencesRepository( private val userPreferencesStore: DataStore,

and in other snipets U use name for dataStore name dataStore not userPreferencesStore

UserPreferencesRepository(private val dataStore: DataStore)

please fix it

mmoczkowski commented 2 years ago

Thanks @yogaboyCZ. This is noted. A fix will be published soon. Closing since this is a duplicate of #47

mmoczkowski commented 2 years ago

Sorry, not a duplicate. Reopening

mmoczkowski commented 2 years ago

The constructor argument's name has been updated. https://developer.android.com/codelabs/android-preferences-datastore#5

Thanks again for reporting