Reduce debug logging

This commit is contained in:
jpirnay
2026-04-17 20:43:36 +02:00
parent b4881e1563
commit 6ca8de8329
8 changed files with 163 additions and 13 deletions
+14 -1
View File
@@ -116,7 +116,7 @@ class ActivityManager {
void goToBoot();
void goToFullScreenMessage(std::string message, EpdFontFamily::Style style = EpdFontFamily::REGULAR);
void goToWeather();
void goHome(std::string focusBookPath = {});
void goHome(std::string focusBookPath = {}, int focusSelectorIndex = -1);
// Replace-with-hint helpers: destroy the current activity before launching the new
// one (freeing its memory) and record where to route control when the new activity
@@ -130,6 +130,19 @@ class ActivityManager {
// no hint is set, defaults to goHome().
void returnFromChild();
// Record a ReturnHint before calling any plain goTo*() helper. Allows an activity
// (e.g. Home) to declare "when this flow ends, come back here with this state" for
// transitions where we don't want a dedicated replaceWith*() wrapper.
// Cleared by returnFromChild() or by an explicit goHome()/replaceWith*() call.
void setReturnHint(ReturnHint hint) {
returnHint = std::move(hint);
hasReturnHint = true;
}
void clearReturnHint() {
returnHint = {};
hasReturnHint = false;
}
// This will move current activity to stack instead of deleting it
void pushActivity(std::unique_ptr<Activity>&& activity);