BookFragment
页面在这个fragment里面。
/* Access modifiers changed, original: protected */
public View onCreateView() {
long currentTimeMillis = System.currentTimeMillis();
FontTypeManager.getInstance().setTextTypeface(this.storage.getSetting().getFontName());
FontTypeManager.getInstance().setTextSizeLevel(this.storage.getSetting().getFontSize());
setTextTypeAndSize();
initPageAdapter();
initReaderLayout();
initAction();
initProgressReporter();
initSegmenter();
initReadingInfo();
syncMemberCardSummary(1, null);
if (!BookHelper.isSoldOut(this.mBook) && isBookVersionUpdated(String.valueOf(this.mBook.getVersion())) && Networks.isNetworkConnected(getContext())) {
WRLog.log(3, TAG, "mBook " + this.mBook.getBookId() + " has new version update : " + ReaderSQLiteStorage.sharedInstance().getVersion(this.mBookId) + " to " + this.mBook.getVersion());
updateBookVersion(String.valueOf(this.mBook.getVersion()));
} else {
turnToChapterAtPositionAndInvalidate(this.mChapterUid, this.mCharPos);
}
loadExtra();
OsslogCollect.logPreformanceEnd(Perf.ReadBookTimeLocal);
OsslogCollect.logReaderDurationBegin(OsslogDefine.READER_READING_DURATION_TOTAL);
new StringBuilder("onCreateView spend time = ").append(System.currentTimeMillis() - currentTimeMillis);
return this.mReaderLayout;
}
BasePageView
changeContentDescription
网友评论