修复特定情况下章节保存错误的bug

master
fengyuecanzhu 3 years ago committed by GitHub
parent dadf1853ba
commit 1c9292c816
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      app/src/main/java/xyz/fycz/myreader/widget/page/PageLoader.java

@ -1517,8 +1517,8 @@ public abstract class PageLoader {
private void chapterChangeCallback() {
if (mPageChangeListener != null) {
readAloudParagraph = -1;
mPageChangeListener.onPageChange(0, resetReadAloud);
mPageChangeListener.onChapterChange(mCurChapterPos);
mPageChangeListener.onPageChange(0, resetReadAloud);
resetReadAloud = true;
mPageChangeListener.onPageCountChange(mCurChapter != null ? mCurChapter.getPageSize() : 0);
}

Loading…
Cancel
Save