Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

livedata is not notify when clearing on API < 30 #260

Open
beigirad opened this issue Jan 30, 2022 · 0 comments
Open

livedata is not notify when clearing on API < 30 #260

beigirad opened this issue Jan 30, 2022 · 0 comments
Labels

Comments

@beigirad
Copy link
Contributor

beigirad commented Jan 30, 2022

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants