master
fengyuecanzhu 3 years ago
parent 9b37066091
commit 3240b1a03c
  1. 6
      app/src/main/java/xyz/fycz/myreader/ui/activity/ReadActivity.java

@ -280,13 +280,8 @@ public class ReadActivity extends BaseActivity implements ColorPickerDialogListe
finish(); finish();
return; return;
} }
if (pagePos != -1 && chapterPos != -1) {
mBook.setHisttoryChapterNum(chapterPos);
mBook.setLastReadPosition(pagePos);
} else {
pagePos = mBook.getLastReadPosition(); pagePos = mBook.getLastReadPosition();
chapterPos = mBook.getHisttoryChapterNum(); chapterPos = mBook.getHisttoryChapterNum();
}
if (SharedPreUtils.getInstance().getBoolean(getString(R.string.isNightFS), false)) { if (SharedPreUtils.getInstance().getBoolean(getString(R.string.isNightFS), false)) {
mSetting.setDayStyle(!ColorUtil.isColorLight(getResources().getColor(R.color.textPrimary))); mSetting.setDayStyle(!ColorUtil.isColorLight(getResources().getColor(R.color.textPrimary)));
} }
@ -1583,6 +1578,7 @@ public class ReadActivity extends BaseActivity implements ColorPickerDialogListe
public void onSubscribe(Disposable d) { public void onSubscribe(Disposable d) {
addDisposable(d); addDisposable(d);
} }
@Override @Override
public void onNext(@NotNull String s) { public void onNext(@NotNull String s) {
downloadingChapter = chapter.getTitle(); downloadingChapter = chapter.getTitle();

Loading…
Cancel
Save