Merge "Make implementation of isEmpty consistent with implementation of getCount in HeaderListViewAdapter"

This commit is contained in:
Adam Powell
2012-12-11 18:00:48 -08:00
committed by Gerrit Code Review

View File

@@ -79,7 +79,8 @@ public class HeaderViewListAdapter implements WrapperListAdapter, Filterable {
}
public boolean isEmpty() {
return mAdapter == null || mAdapter.isEmpty();
return (mAdapter == null || mAdapter.isEmpty())
&& getFootersCount() + getHeadersCount() == 0;
}
private boolean areAllListInfosSelectable(ArrayList<ListView.FixedViewInfo> infos) {