- All properties in the
SharedPreferencesHelper
are now mutable. - Added static method
SharedPreferencesHelper.setDefaultPreferenceValues(Context)
.
- Annotation processor will generate
SharedPreferencesHelper
, so you don't need to getSharedPreferences
value like this:SharedPreferences.get<DataType>(key, defaultValue)
. Take advantage of using it with dependency injection such as Dagger 2 and Koin. Personally, I would recommend you to use Koin because of its simplicity.
PreferenceKeysConfig
now becomesPreferencesConfig
.PreferencesConfig
no longer supportsstringResName
since it is getting more complex to develop.
- Introducing
IntegerListPreference
forinteger-array
type entry values. - Added
OnBindTextInputLayoutListener
as replacement forOnBindEditTextListener
. - All preference classes are now
open
.
SafeRingtone
is now publicly available.
SafeRingtone.title
causesRuntimeException
if storage permission not granted.
- Updated ProGuard rules
RingtonePreference
keeps playing sound after dialog was closed.
- Updated dependencies
- Updated dependencies
ColorPreference
crash on rotation changed
- Inflating
preferences.xml
causesjava.lang.ClassCastException: android.content.res.XmlBlock$Parser cannot be cast to java.lang.AutoCloseable
- Updated dependencies
- Version
3.1.0
and lower are no longer available to download
- Added preference key generator. With this feature, you don't need to save all preference keys into a constant class each time you modify
preferences.xml
ListPreference
does not update summary correctlyFolderPreference
now maintains current path on orientation change
- Migrated to Kotlin
- New
ColorPreference
FolderPreference
now supports API level 19 and lower
- Cannot extends from
PreferenceActivityMaterial
andPreferenceFragmentMaterial
- Now you can donate to this library
- Added proguard rules for
DatePreference
andTimePreference
Version 2.0.0 contains breaking changes that migrates Support Library to AndroidX Jetpack. In the future, version 3 of this library will be written in Kotlin.
- Added
FolderPreference
- Added
DatePreference
- Added
TimePreference
- None
- Stable release
- None