seekbarpreference

Custom inline SeekBarPreference - how to set SeekBar progress on the 1st run?

妖精的绣舞 提交于 2019-12-22 06:41:09
问题 I have prepared a simple test project for my question at GitHub. In my project there is a custom inline SeekBarPreference, which mostly works fine (its summary is updated when seekbar is being dragged and it saves integer value): However there is a problem: On the very 1st run of the app (you might need to uninstall my app when you try see the error again) the progress of the SeekBar is not set (but the summaries are set): My question is: how to fix this issue in my code? I have tried adding

Custom inline SeekBarPreference - how to set SeekBar progress on the 1st run?

纵然是瞬间 提交于 2019-12-05 09:32:08
I have prepared a simple test project for my question at GitHub. In my project there is a custom inline SeekBarPreference , which mostly works fine (its summary is updated when seekbar is being dragged and it saves integer value): However there is a problem: On the very 1st run of the app (you might need to uninstall my app when you try see the error again) the progress of the SeekBar is not set (but the summaries are set): My question is: how to fix this issue in my code? I have tried adding mSeekBar.setProgress(mProgress) in different spots of SeekBarPreference.java , but just can't find the