Kotpref icon indicating copy to clipboard operation
Kotpref copied to clipboard

livedata is not notify when clearing on API < 30

Open beigirad opened this issue 3 years ago • 0 comments

LiveData-support doesn't work for situations that targetSdk or target device are below than API 30.

I checked livedata-support source code. It uses SharedPreferences.OnSharedPreferenceChangeListener that has this description:

Note: This callback will not be triggered when preferences are cleared via Editor#clear(), unless targeting Build.VERSION_CODES.R on devices running OS versions Android R or later. source

beigirad avatar Jan 30 '22 07:01 beigirad