Commit b7a22935 authored by Adrien Maglo's avatar Adrien Maglo
Browse files

Equalizer: fix a layout glitch in portrait mode

parent e435af3b
...@@ -43,7 +43,6 @@ ...@@ -43,7 +43,6 @@
android:id="@+id/equalizer_bands" android:id="@+id/equalizer_bands"
android:layout_width="wrap_content" android:layout_width="wrap_content"
android:layout_height="match_parent" android:layout_height="match_parent"
android:layout_gravity="center_horizontal"
android:orientation="horizontal" /> android:orientation="horizontal" />
</HorizontalScrollView> </HorizontalScrollView>
......
...@@ -41,7 +41,6 @@ ...@@ -41,7 +41,6 @@
android:id="@+id/equalizer_bands" android:id="@+id/equalizer_bands"
android:layout_width="wrap_content" android:layout_width="wrap_content"
android:layout_height="match_parent" android:layout_height="match_parent"
android:layout_gravity="center_horizontal"
android:orientation="horizontal" /> android:orientation="horizontal" />
</HorizontalScrollView> </HorizontalScrollView>
......
...@@ -93,13 +93,16 @@ public class EqualizerFragment extends SherlockFragment { ...@@ -93,13 +93,16 @@ public class EqualizerFragment extends SherlockFragment {
rootView.addView(v); rootView.addView(v);
saveViewChildren(v); saveViewChildren(v);
onResume(); fillViews();
} }
@Override @Override
public void onResume() { public void onResume() {
super.onResume(); super.onResume();
fillViews();
}
private void fillViews() {
SharedPreferences preferences = PreferenceManager.getDefaultSharedPreferences(VLCApplication.getAppContext()); SharedPreferences preferences = PreferenceManager.getDefaultSharedPreferences(VLCApplication.getAppContext());
float[] bands = null; float[] bands = null;
String[] presets = null; String[] presets = null;
......
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