Skip to content
This repository has been archived by the owner on Oct 15, 2018. It is now read-only.

only add footer view when needed #240

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file modified extras/PullToRefreshListFragment/libs/android-support-v4.jar
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -313,8 +313,10 @@ public boolean dispatchTouchEvent(MotionEvent ev) {

@Override
public void setAdapter(ListAdapter adapter) {
// Add the Footer View at the last possible moment
if (null != mLvFooterLoadingFrame && !mAddedLvFooter) {
final Mode mode = getMode();
// Add the Footer View at the last possible moment
if (null != mLvFooterLoadingFrame && !mAddedLvFooter
&& mode.showFooterLoadingLayout()) {
addFooterView(mLvFooterLoadingFrame, null, false);
mAddedLvFooter = true;
}
Expand Down