mirror of
https://github.com/moparisthebest/k-9
synced 2025-02-28 00:21:49 -05:00
Allow removing the empty view of the pull-to-refresh container
This commit is contained in:
parent
bc2f099c3c
commit
c78ec01962
@ -170,6 +170,7 @@ public abstract class PullToRefreshAdapterViewBase<T extends AbsListView> extend
|
|||||||
|
|
||||||
refreshableViewWrapper.addView(newEmptyView, ViewGroup.LayoutParams.MATCH_PARENT,
|
refreshableViewWrapper.addView(newEmptyView, ViewGroup.LayoutParams.MATCH_PARENT,
|
||||||
ViewGroup.LayoutParams.MATCH_PARENT);
|
ViewGroup.LayoutParams.MATCH_PARENT);
|
||||||
|
}
|
||||||
|
|
||||||
if (mRefreshableView instanceof EmptyViewMethodAccessor) {
|
if (mRefreshableView instanceof EmptyViewMethodAccessor) {
|
||||||
((EmptyViewMethodAccessor) mRefreshableView).setEmptyViewInternal(newEmptyView);
|
((EmptyViewMethodAccessor) mRefreshableView).setEmptyViewInternal(newEmptyView);
|
||||||
@ -178,7 +179,6 @@ public abstract class PullToRefreshAdapterViewBase<T extends AbsListView> extend
|
|||||||
}
|
}
|
||||||
mEmptyView = newEmptyView;
|
mEmptyView = newEmptyView;
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Pass-through method for {@link PullToRefreshBase#getRefreshableView()
|
* Pass-through method for {@link PullToRefreshBase#getRefreshableView()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user