codelab-android-datastore icon indicating copy to clipboard operation
codelab-android-datastore copied to clipboard

Incorrect parameter in the constructor of the UserPreferencesRepository

Open Arunm619 opened this issue 3 years ago • 0 comments

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>)

Arunm619 avatar Nov 10 '21 18:11 Arunm619