|
|
|
@ -280,13 +280,8 @@ public class ReadActivity extends BaseActivity implements ColorPickerDialogListe |
|
|
|
|
finish(); |
|
|
|
|
return; |
|
|
|
|
} |
|
|
|
|
if (pagePos != -1 && chapterPos != -1) { |
|
|
|
|
mBook.setHisttoryChapterNum(chapterPos); |
|
|
|
|
mBook.setLastReadPosition(pagePos); |
|
|
|
|
} else { |
|
|
|
|
pagePos = mBook.getLastReadPosition(); |
|
|
|
|
chapterPos = mBook.getHisttoryChapterNum(); |
|
|
|
|
} |
|
|
|
|
if (SharedPreUtils.getInstance().getBoolean(getString(R.string.isNightFS), false)) { |
|
|
|
|
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) { |
|
|
|
|
addDisposable(d); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
@Override |
|
|
|
|
public void onNext(@NotNull String s) { |
|
|
|
|
downloadingChapter = chapter.getTitle(); |
|
|
|
|