Skip to content

Commit

Permalink
Merge pull request chrisbanes#177 from cketti/fix_set_empty_view
Browse files Browse the repository at this point in the history
Allow removing the empty view using setEmptyView(null)
  • Loading branch information
Chris Banes committed Dec 11, 2012
2 parents 295361e + 786f42b commit bab1eb9
Showing 1 changed file with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -174,14 +174,14 @@ public final void setEmptyView(View newEmptyView) {

refreshableViewWrapper.addView(newEmptyView, ViewGroup.LayoutParams.MATCH_PARENT,
ViewGroup.LayoutParams.MATCH_PARENT);
}

if (mRefreshableView instanceof EmptyViewMethodAccessor) {
((EmptyViewMethodAccessor) mRefreshableView).setEmptyViewInternal(newEmptyView);
} else {
mRefreshableView.setEmptyView(newEmptyView);
}
mEmptyView = newEmptyView;
if (mRefreshableView instanceof EmptyViewMethodAccessor) {
((EmptyViewMethodAccessor) mRefreshableView).setEmptyViewInternal(newEmptyView);
} else {
mRefreshableView.setEmptyView(newEmptyView);
}
mEmptyView = newEmptyView;
}

/**
Expand Down

0 comments on commit bab1eb9

Please sign in to comment.