(final Chapter chapter)
| 1591 | } |
| 1592 | |
| 1593 | private void loadChapter(final Chapter chapter) { |
| 1594 | |
| 1595 | if (chapter != currentBook.getCurrentChapter() |
| 1596 | || chapterBooklet == null) { |
| 1597 | |
| 1598 | /* chapter changed or book not loaded at all */ |
| 1599 | currentBook.unloadChaptersBuffers(); |
| 1600 | currentBook.setCurrentChapter(chapter); |
| 1601 | updateChapterNum(chapter.getNumber() + 1); |
| 1602 | renderWaitCursor(); |
| 1603 | reflowPages(); |
| 1604 | mode = MODE_PAGE_READING; |
| 1605 | } |
| 1606 | } |
| 1607 | |
| 1608 | public final void goToFirstPage(final int chapterNumber) { |
| 1609 | final Chapter c = currentBook.getChapter(chapterNumber); |
no test coverage detected