diff options
author | Scott Jackson <daneren2005@gmail.com> | 2013-02-23 10:21:26 -0800 |
---|---|---|
committer | Scott Jackson <daneren2005@gmail.com> | 2013-02-23 10:21:26 -0800 |
commit | ca9a99f5c482d896bb2157366367ce2f6e9675f6 (patch) | |
tree | 8d556bca41c44f4a8765cf594798cec34b759433 | |
parent | 956c3119a1fe2dcdbdbfab90e72c606d2fac3a4b (diff) | |
download | dsub-ca9a99f5c482d896bb2157366367ce2f6e9675f6.tar.gz dsub-ca9a99f5c482d896bb2157366367ce2f6e9675f6.tar.bz2 dsub-ca9a99f5c482d896bb2157366367ce2f6e9675f6.zip |
Fix setLayoutParams crashing other views
-rw-r--r-- | subsonic-android/src/github/daneren2005/dsub/view/UpdateView.java | 6 |
1 files 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 9cc627cc..9fbaccf6 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();
|