Skip to content
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
Original file line number Diff line number Diff line change
Expand Up @@ -326,10 +326,8 @@ private void animateOffsetToCorrectPosition() {

if (mRefreshing) {//开始刷新
mBaseRefreshView.start();
if (mNotify) {
if (mListener != null) {
mListener.onRefresh();
}
if (mNotify && mListener != null) {
mListener.onRefresh();
}
} else {//停止刷新
mBaseRefreshView.stop();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -459,10 +459,8 @@ public void onAnimationStart(Animation animation) {
@Override
public void onAnimationEnd(Animation animation) {
if (mRefreshing) {//开始刷新
if (mNotify) {
if (mListener != null) {
mListener.onRefresh();
}
if (mNotify && mListener != null) {
mListener.onRefresh();
}
} else {//停止刷新
animateOffsetToStartPosition();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -357,11 +357,9 @@ public void onScroll(AbsListView view, int firstVisibleItem, int visibleItemCoun
}
@Override
public void notifyStateChanged(WaterDropListViewHeader.STATE oldState, WaterDropListViewHeader.STATE newState) {
if(newState == WaterDropListViewHeader.STATE.refreshing){
if(mListViewListener != null){
mIsRefreshing=true;
mListViewListener.onRefresh();
}
if (newState == WaterDropListViewHeader.STATE.refreshing && mListViewListener != null) {
mIsRefreshing = true;
mListViewListener.onRefresh();
}
}
public void setWaterDropListViewListener(IWaterDropListViewListener l) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -223,10 +223,8 @@ public void onAnimationEnd(Animation animation) {
// Make sure the progress view is fully visible
mProgress.setAlpha(MAX_ALPHA);
mProgress.start();
if (mNotify) {
if (mListener != null) {
mListener.onRefresh();
}
if (mNotify && mListener != null) {
mListener.onRefresh();
}
} else {
mProgress.stop();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -238,10 +238,8 @@ private void animateOffsetToCorrectPosition() {

if (mRefreshing) {
mRefreshView.start();
if (mNotify) {
if (mListener != null) {
mListener.onRefresh();
}
if (mNotify && mListener != null) {
mListener.onRefresh();
}
} else {
mRefreshView.stop();
Expand Down