codelab-android-datastore
codelab-android-datastore copied to clipboard
Incorrect parameter in the constructor of the UserPreferencesRepository
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>)