Short press will go back to origin / long press will go back to home

This commit is contained in:
jpirnay
2026-04-05 21:37:28 +02:00
parent c86a5fee4c
commit f75bbf5b1e
8 changed files with 32 additions and 23 deletions
+4
View File
@@ -200,6 +200,10 @@ void ActivityManager::goToReader(std::string path) {
replaceActivity(std::make_unique<ReaderActivity>(renderer, mappedInput, std::move(path)));
}
void ActivityManager::pushReader(std::string path) {
pushActivity(std::make_unique<ReaderActivity>(renderer, mappedInput, std::move(path)));
}
void ActivityManager::goToSleep() {
replaceActivity(std::make_unique<SleepActivity>(renderer, mappedInput));
loop(); // Important: sleep screen must be rendered immediately, the caller will go to sleep right after this returns