pull/29/head
fengyuecanzhu 2 years ago
parent 9c878aa198
commit 06012c7713
No known key found for this signature in database
GPG Key ID: 04B78AD06A9D6E6C
  1. 7
      app/src/main/java/xyz/fycz/myreader/ui/activity/ReadActivity.java

@ -393,7 +393,7 @@ public class ReadActivity extends BaseActivity<ActivityReadBinding> implements C
@Override @Override
public void onLongPress() { public void onLongPress() {
if (mSetting.getPageMode() == SCROLL){ if (mSetting.getPageMode() == SCROLL) {
ToastUtils.showWarring("滚动模式暂不支持长按复制"); ToastUtils.showWarring("滚动模式暂不支持长按复制");
return; return;
} }
@ -417,6 +417,9 @@ public class ReadActivity extends BaseActivity<ActivityReadBinding> implements C
mChapters = chapters; mChapters = chapters;
mBook.setNoReadNum(0); mBook.setNoReadNum(0);
mBook.setChapterTotalNum(chapters.size()); mBook.setChapterTotalNum(chapters.size());
if (mBook.getHisttoryChapterNum() > chapters.size() - 1) {
mBook.setHisttoryChapterNum(chapters.size() - 1);
}
mBook.setNewestChapterTitle(chapters.get(chapters.size() - 1).getTitle()); mBook.setNewestChapterTitle(chapters.get(chapters.size() - 1).getTitle());
if (hasChangeSource) { if (hasChangeSource) {
boolean flag = mBookService.matchHistoryChapterPos(mBook, mChapters); boolean flag = mBookService.matchHistoryChapterPos(mBook, mChapters);
@ -1275,7 +1278,7 @@ public class ReadActivity extends BaseActivity<ActivityReadBinding> implements C
@Override @Override
public void onPageModeChange() { public void onPageModeChange() {
mPageLoader.setPageMode(mSetting.getPageMode()); mPageLoader.setPageMode(mSetting.getPageMode());
if (mSetting.getPageMode().equals(SCROLL)){ if (mSetting.getPageMode().equals(SCROLL)) {
DialogCreator.createTipDialog(ReadActivity.this, DialogCreator.createTipDialog(ReadActivity.this,
"滚动模式存在大量问题,不建议使用;且作者本人不使用此模式,大概率不会进行修复/优化,也不接受此模式的问题反馈"); "滚动模式存在大量问题,不建议使用;且作者本人不使用此模式,大概率不会进行修复/优化,也不接受此模式的问题反馈");
} }

Loading…
Cancel
Save