I’ve been trying to work this out for 2 days now and I have absolutely no idea how to fix it.
Essentially, I have a service that listens for changes in a ListView (via a BroadcastReceiver) and updates several SeekBarPreferences accordingly via editor.putInt(“SeekBarPreference”, value).commit();. Now everything works as it should and it returns the correct values BUT it wont change the seekbarpreferences visually. If I restart the service (press back and then click on the relevant option) they change to the correct positions. Or even if I rotate the device they change.
I guess my question is; Is there any way to manually “refresh” the ‘look’ of the preferences?
Thanks!
(I know there are similar questions on here, but none of them really have a solution)
A lame way I sometimes fall back on is to relaunch the activity. Create an intent for the current activity and launch it. Two lines of code. Don’t know if its a practical solution for your problem, but its worked in various situations for me.