MCPcopy Create free account
hub / github.com/crosspoint-reader/crosspoint-reader / onEnter

Method onEnter

src/activities/home/RecentBooksActivity.cpp:23–37  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

21void RecentBooksActivity::loadRecentBooks() { recentBooks = RECENT_BOOKS.getBooks(); }
22
23void 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
39void RecentBooksActivity::onExit() {
40 Activity::onExit();

Callers

nothing calls this directly

Calls 2

pruneMissingMethod · 0.80
saveToFileMethod · 0.45

Tested by

no test coverage detected