Remember adjustment step size for playback controls (speed and pitch)
- Add adjustment_step_key to settings_keys.xml to be used when saving/loading the step size. - Remove the global stepSize variable and the code that saves it to outState/loads it from savedInstanceState because it's now saved to Shared Preferences. - Move initially setting step size to setupStepSizeSelector to be consistent with the other view setup methods, using the value loaded from Shared Preferences. - Save the step size to Shared Preferences inside setStepSize. Fixes: #7031
This commit is contained in:
parent
f1c6988552
commit
62c0e6605c
2 changed files with 10 additions and 9 deletions
|
|
@ -258,6 +258,7 @@
|
|||
<string name="main_page_content_key">main_page_content</string>
|
||||
<string name="enable_playback_resume_key">enable_playback_resume</string>
|
||||
<string name="enable_playback_state_lists_key">enable_playback_state_lists</string>
|
||||
<string name="adjustment_step_key">adjustment_step_key</string>
|
||||
<string name="playback_unhook_key">playback_unhook_key</string>
|
||||
<string name="playback_speed_key">playback_speed_key</string>
|
||||
<string name="playback_pitch_key">playback_pitch_key</string>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue