From ca9a99f5c482d896bb2157366367ce2f6e9675f6 Mon Sep 17 00:00:00 2001 From: Scott Jackson Date: Sat, 23 Feb 2013 10:21:26 -0800 Subject: [PATCH] Fix setLayoutParams crashing other views --- .../src/github/daneren2005/dsub/view/UpdateView.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/subsonic-android/src/github/daneren2005/dsub/view/UpdateView.java b/subsonic-android/src/github/daneren2005/dsub/view/UpdateView.java index 9cc627cc5..9fbaccf67 100644 --- a/subsonic-android/src/github/daneren2005/dsub/view/UpdateView.java +++ b/subsonic-android/src/github/daneren2005/dsub/view/UpdateView.java @@ -34,9 +34,9 @@ public class UpdateView extends LinearLayout { public UpdateView(Context context) { super(context); - setLayoutParams(new LinearLayout.LayoutParams( - LinearLayout.LayoutParams.FILL_PARENT, - LinearLayout.LayoutParams.WRAP_CONTENT)); + setLayoutParams(new AbsListView.LayoutParams( + ViewGroup.LayoutParams.FILL_PARENT, + ViewGroup.LayoutParams.WRAP_CONTENT)); INSTANCES.put(this, null); int instanceCount = INSTANCES.size();