Skip to content

Commit

Permalink
Fix setLayoutParams crashing other views
Browse files Browse the repository at this point in the history
  • Loading branch information
daneren2005 committed Feb 23, 2013
1 parent 956c311 commit ca9a99f
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit ca9a99f

Please sign in to comment.