[Android] Equalizer: stretch the equalizer when there is free space

Adrien Maglo git at videolan.org
Thu Feb 6 18:45:19 CET 2014


vlc-ports/android | branch: master | Adrien Maglo <magsoft at videolan.org> | Thu Feb  6 18:45:08 2014 +0100| [e435af3b4611539457f5972438205e8e2d6f633a] | committer: Adrien Maglo

Equalizer: stretch the equalizer when there is free space

> http://git.videolan.org/gitweb.cgi/vlc-ports/android.git/?a=commit;h=e435af3b4611539457f5972438205e8e2d6f633a
---

 vlc-android/src/org/videolan/vlc/gui/audio/EqualizerFragment.java |    5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

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 b21ac71..3757247 100644
--- a/vlc-android/src/org/videolan/vlc/gui/audio/EqualizerFragment.java
+++ b/vlc-android/src/org/videolan/vlc/gui/audio/EqualizerFragment.java
@@ -153,8 +153,9 @@ public class EqualizerFragment extends SherlockFragment {
             bar.setListener(new BandListener(i + 1));
 
             bands_layout.addView(bar);
-            LayoutParams params = bar.getLayoutParams();
-            params.height = LayoutParams.MATCH_PARENT;
+            LinearLayout.LayoutParams params =
+                    new LinearLayout.LayoutParams(LayoutParams.WRAP_CONTENT,
+                                                  LayoutParams.MATCH_PARENT, 1);
             bar.setLayoutParams(params);
         }
     }



More information about the Android mailing list