Skip to content
Open
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 @@ -296,6 +296,8 @@ private void drawOutCir(Canvas canvas) {
private boolean mIsStart = true;
private boolean mIsRefreshing = true;

private boolean isQuickStop = false;

private void drawRefreshing(Canvas canvas) {
canvas.drawRect(0, 0, mWidth, mHeight, mBackPaint);
int innerY = PULL_HEIGHT - PULL_DELTA / 2 - mRadius * 2;
Expand All @@ -322,11 +324,17 @@ private void drawRefreshing(Canvas canvas) {

}

if (isQuickStop){
mIsRefreshing = false;
isQuickStop = false;
}
}

// stop refreshing
public void setRefreshing(boolean isFresh) {
mIsRefreshing = isFresh;

mIsRefreshing = isFresh;
isQuickStop = true;
}

private void drawDone(Canvas canvas) {
Expand Down