Monday, October 10, 2011

[android-developers] Custom DialogPreference and PreferenceManager.setDefaultValues issue

Hi, 

I have integrated a custom DialogPreference (SeekBarPreference from http://android.hlidskialf.com/blog/code/android-seekbar-preference). 

But I can't make the call to PreferenceManager.setDefaultValues correctly initialize the preference to defaut value.

After looking at android source, I would expect that onSetInitialValue(boolean restore, Object defaultValue) is called, which is not the case. 

Is there something missing so that PreferenceManager.setDefaultValues works as expected on this preference? 

Thanks for any help, 
Thierry.

--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

No comments:

Post a Comment