martin-stone / hsv-alpha-color-picker-android

A color picker and a color preference for use in Android applications.
Apache License 2.0
290 stars 60 forks source link

Add support for PreferenceDataStore #61

Closed malaire closed 1 year ago

malaire commented 1 year ago

Currently this is hard-coded to use SharedPreferences. Please add support also for PreferenceDataStore (Using a custom data store).

This would allow using alternative storage than SharedPreferences, e.g. DataStore.

martin-stone commented 1 year ago

I'd be happy to consider a pull request.

malaire commented 1 year ago

I've now learned that PreferenceDataStore doesn't support e.g. optional integers of protobuf, which is essential feature for me to save "no color" selection. And since PreferenceDataStore is in maintenance mode, this and other issues will likely never be fixed.

So basically PreferenceDataStore is quite useless to me.