문제

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()?

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top