| 47 | } |
| 48 | |
| 49 | void 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 | |
| 62 | void TxtReaderActivity::loop() { |
| 63 | // Long press BACK (1s+) goes to file selection |
nothing calls this directly
no test coverage detected