| 249 | bool ActivityManager::preventAutoSleep() const { return currentActivity && currentActivity->preventAutoSleep(); } |
| 250 | |
| 251 | bool ActivityManager::isReaderActivity() const { |
| 252 | return std::any_of(stackActivities.begin(), stackActivities.end(), |
| 253 | [](const auto& activity) { return activity->isReaderActivity(); }) || |
| 254 | (currentActivity && currentActivity->isReaderActivity()); |
| 255 | } |
| 256 | |
| 257 | bool ActivityManager::skipLoopDelay() const { return currentActivity && currentActivity->skipLoopDelay(); } |
| 258 |