Skip to content

Commit d0b3bfd

Browse files
author
Chris Banes
committed
Fix Empty View being stretched.
1 parent 1669f28 commit d0b3bfd

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

library/src/com/handmark/pulltorefresh/library/PullToRefreshAdapterViewBase.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -172,8 +172,7 @@ public final void setEmptyView(View newEmptyView) {
172172
((ViewGroup) newEmptyViewParent).removeView(newEmptyView);
173173
}
174174

175-
refreshableViewWrapper.addView(newEmptyView, ViewGroup.LayoutParams.MATCH_PARENT,
176-
ViewGroup.LayoutParams.MATCH_PARENT);
175+
refreshableViewWrapper.addView(newEmptyView);
177176
}
178177

179178
if (mRefreshableView instanceof EmptyViewMethodAccessor) {

0 commit comments

Comments
 (0)