master
fengyuecanzhu 3 years ago
parent 9b37066091
commit 3240b1a03c
  1. 8
      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)));
} }
@ -756,7 +751,7 @@ public class ReadActivity extends BaseActivity implements ColorPickerDialogListe
} else if (itemId == R.id.action_replace_content) { } else if (itemId == R.id.action_replace_content) {
Intent ruleIntent = new Intent(this, ReplaceRuleActivity.class); Intent ruleIntent = new Intent(this, ReplaceRuleActivity.class);
startActivityForResult(ruleIntent, APPCONST.REQUEST_REFRESH_READ_UI); startActivityForResult(ruleIntent, APPCONST.REQUEST_REFRESH_READ_UI);
}else if(itemId == R.id.action_re_seg){ } else if (itemId == R.id.action_re_seg) {
mBook.setReSeg(!mBook.getReSeg()); mBook.setReSeg(!mBook.getReSeg());
mBookService.updateEntity(mBook); mBookService.updateEntity(mBook);
if (mPageLoader != null) { if (mPageLoader != null) {
@ -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