阅读自动化

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

最后编辑于
©著作权归作者所有,转载或内容合作请联系作者
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

推荐阅读更多精彩内容