Skip to content

Commit

Permalink
优化
Browse files Browse the repository at this point in the history
  • Loading branch information
gedoor committed Nov 1, 2018
1 parent f750c7a commit c5ab8a4
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -129,8 +129,6 @@ public void clear() {
*/
public abstract void draw(Canvas canvas);

public void onPageDrawn(int pageOnCur) { }

/**
* 滚动动画
* 必须放在computeScroll()方法中执行
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -452,7 +452,6 @@ public void changePageEnd() {
}
}

@Override
public void onPageDrawn(int pageOnCur) {
if (!blurBackImage)
return;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -213,7 +213,9 @@ public void drawPage(int pageOnCur) {
if (!isPrepare) return;
if (mPageLoader != null) {
mPageLoader.drawPage(getBgBitmap(pageOnCur), getContentBitmap(pageOnCur), pageOnCur);
mPageAnim.onPageDrawn(pageOnCur);
if (mPageAnim instanceof SimulationPageAnim) {
((SimulationPageAnim) mPageAnim).onPageDrawn(pageOnCur);
}
}
}

Expand Down

0 comments on commit c5ab8a4

Please sign in to comment.