| 25 | #include "fontIds.h" |
| 26 | |
| 27 | void XtcReaderActivity::onEnter() { |
| 28 | Activity::onEnter(); |
| 29 | |
| 30 | if (!xtc) { |
| 31 | return; |
| 32 | } |
| 33 | |
| 34 | xtc->setupCacheDir(); |
| 35 | |
| 36 | // Load saved progress |
| 37 | loadProgress(); |
| 38 | |
| 39 | // Save current XTC as last opened book and add to recent books |
| 40 | APP_STATE.openEpubPath = xtc->getPath(); |
| 41 | APP_STATE.saveToFile(); |
| 42 | RECENT_BOOKS.addBook(xtc->getPath(), xtc->getTitle(), xtc->getAuthor(), xtc->getThumbBmpPath()); |
| 43 | |
| 44 | // Trigger first update |
| 45 | requestUpdate(); |
| 46 | } |
| 47 | |
| 48 | void XtcReaderActivity::onExit() { |
| 49 | Activity::onExit(); |
nothing calls this directly
no test coverage detected