Closed nynganini closed 2 years ago
I have encounter the same problem so I decided to look the finished repository to check how they have done that and they have also written DataStore
Looks like they just write code in notepad and commit it, and never correct it either.
These kind of mistakes can (and do) throw beginners off the wagon really easily. This should be fixed ASAP.
Offending page: https://developer.android.com/codelabs/android-preferences-datastore#5
Thanks, I agree this needs to be fixed asap. Working on it.
Closing as a duplicate of #45
When creating UserPreferencesRepository the type should be DataStore\<Preferences> instead of DataStore\<UserPreferences>