Commit 88ea254b authored by Sébastien Toque's avatar Sébastien Toque

fix equalizer loading

parent a71c0d3a
......@@ -131,7 +131,6 @@ public class EqualizerFragment extends SherlockFragment {
// presets
equalizer_presets.setAdapter(new ArrayAdapter<String>(getActivity(), android.R.layout.simple_spinner_dropdown_item, presets));
equalizer_presets.setOnItemSelectedListener(mPresetListener);
// Set the default selection asynchronously to prevent a layout initialization bug.
final int equalizer_preset_pref = preferences.getInt("equalizer_preset", 0);
......@@ -139,6 +138,7 @@ public class EqualizerFragment extends SherlockFragment {
@Override
public void run() {
equalizer_presets.setSelection(equalizer_preset_pref, false);
equalizer_presets.setOnItemSelectedListener(mPresetListener);
}
});
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment