Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Close #1
Overview
低負荷更新で目次の章が破損する
Causes
EpisodeFecher.moveNext
で目次ページhtmlから章と話を読み込んでいるEpisodeFecher.mChapter
)Solutions
UpdateManager
のloadEpisode
メソッド(private) でNovelBean
オブジェクト をアップデートすることで確認できるNovelBean.getChapter()
メソッドで入手できるEpisodeFecher
のmChapter
フィールドを更新するToDo
Modding.patchNovelHtml
(目次ページhtml連結用メソッド) で、低負荷更新時に読込み開始話番号をListBean
オブジェクトに記録するprivate int ListBean.updateStartNo
フィールドとsetter/getterを作成UpdateManager
クラスでEpisodeFetcher
オブジェクト作成後に上記updateStartNo
を利用してupdateStartNo - 1
話の章番号をロード、EpisodeFecher.mChapter
を更新EpisodeFecher.mChapter
にはsetterがないため追加UpdateManger
のprivate要素を複数参照するため、Modding
クラスのstaticメソッドではなく、UpdateManager
のメソッドmodEpisodeFetcherChapter
として追加する