[Android] fix equalizer loading
Sébastien Toque
git at videolan.org
Mon Feb 24 19:18:32 CET 2014
vlc-ports/android | branch: master | Sébastien Toque <xilasz at gmail.com> | Mon Feb 24 19:15:20 2014 +0100| [88ea254b1cfb0cd79031b2b740ea60e75ce4f0bc] | committer: Sébastien Toque
fix equalizer loading
> http://git.videolan.org/gitweb.cgi/vlc-ports/android.git/?a=commit;h=88ea254b1cfb0cd79031b2b740ea60e75ce4f0bc
---
vlc-android/src/org/videolan/vlc/gui/audio/EqualizerFragment.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/vlc-android/src/org/videolan/vlc/gui/audio/EqualizerFragment.java b/vlc-android/src/org/videolan/vlc/gui/audio/EqualizerFragment.java
index 80f4f94..c5b4c1d 100644
--- a/vlc-android/src/org/videolan/vlc/gui/audio/EqualizerFragment.java
+++ b/vlc-android/src/org/videolan/vlc/gui/audio/EqualizerFragment.java
@@ -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);
}
});
More information about the Android
mailing list