android / codelab-android-datastore

Apache License 2.0
227 stars 105 forks source link

Incorrect parameter in the constructor of the UserPreferencesRepository #45

Closed Arunm619 closed 2 years ago

Arunm619 commented 2 years ago

On Page 6 of the lab,

the third code snippet shows class UserPreferencesRepository(private val dataStore: DataStore<UserPreferences>) which is incorrect.

The right one is

class UserPreferencesRepository(private val dataStore: DataStore<Preferences>)

mmoczkowski commented 2 years ago

Thank you. Fix will be issued soon.

mmoczkowski commented 2 years ago

Duplicate of #30 and #45

mmoczkowski commented 2 years ago

Thank you, this has been fixed