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

Method onExit

src/activities/reader/TxtReaderActivity.cpp:49–60  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

47}
48
49void TxtReaderActivity::onExit() {
50 Activity::onExit();
51
52 // Reset orientation back to portrait for the rest of the UI
53 renderer.setOrientation(GfxRenderer::Orientation::Portrait);
54
55 pageOffsets.clear();
56 currentPageLines.clear();
57 APP_STATE.readerActivityLoadCount = 0;
58 APP_STATE.saveToFile();
59 txt.reset();
60}
61
62void TxtReaderActivity::loop() {
63 // Long press BACK (1s+) goes to file selection

Callers

nothing calls this directly

Calls 4

setOrientationMethod · 0.80
clearMethod · 0.45
saveToFileMethod · 0.45
resetMethod · 0.45

Tested by

no test coverage detected