| 21 | void RecentBooksActivity::loadRecentBooks() { recentBooks = RECENT_BOOKS.getBooks(); } |
| 22 | |
| 23 | void RecentBooksActivity::onEnter() { |
| 24 | Activity::onEnter(); |
| 25 | |
| 26 | // Prune entries whose backing files are gone; this is one of two interaction |
| 27 | // points where the persistent store gets cleaned (the other is addBook). |
| 28 | if (RECENT_BOOKS.pruneMissing()) { |
| 29 | RECENT_BOOKS.saveToFile(); |
| 30 | } |
| 31 | |
| 32 | // Load data |
| 33 | loadRecentBooks(); |
| 34 | |
| 35 | selectorIndex = 0; |
| 36 | requestUpdate(); |
| 37 | } |
| 38 | |
| 39 | void RecentBooksActivity::onExit() { |
| 40 | Activity::onExit(); |
nothing calls this directly
no test coverage detected