How to make a Preference not save to SharedPreferences?
-
21-09-2019 - |
문제
I am re-using ListPreference for a setting which I store only in the database. How can I prevent it from storing/persisting any data to the preference file?
해결책
Subclass it, override shouldPersist()
to return false.
다른 팁
I've not done it myself, but have you looked into overriding onDialogClosed()
?
제휴하지 않습니다 StackOverflow