开发者

How to make a Preference not save to SharedPreferences?

I am re-using ListPreference for a setti开发者_如何学编程ng 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()?

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜