| 238 | } |
| 239 | |
| 240 | void ActivityManager::popActivity() { |
| 241 | if (pendingActivity) { |
| 242 | // Should never happen in practice |
| 243 | LOG_ERR("ACT", "pendingActivity while popActivity is not expected"); |
| 244 | pendingActivity.reset(); |
| 245 | } |
| 246 | pendingAction = PendingAction::Pop; |
| 247 | } |
| 248 | |
| 249 | bool ActivityManager::preventAutoSleep() const { return currentActivity && currentActivity->preventAutoSleep(); } |
| 250 |