| 379 | } |
| 380 | } |
| 381 | |
| 382 | void RuntimeManager::applicationDidResume() { |
| 383 | VALDI_INFO(*_logger, "Application did resume"); |
| 384 | _anrDetector->onEnterForeground(); |
| 385 | startDebuggerServices(); |
| 386 | cancelDeferredGCTask(); |
| 387 | |
| 388 | // Assets that failed a remote load while backgrounded (e.g. a transient CDN/DNS outage) stay |
| 389 | // failed until a new consumer subscribes. Re-resolve them now that we are foreground and the |
| 390 | // network has likely recovered, so button icons and other static assets repaint without a relaunch. |
| 391 | for (const auto& runtime : getAllRuntimes()) { |
| 392 | const auto& assetsManager = runtime->getResourceManager().getAssetsManager(); |
| 393 | if (assetsManager != nullptr) { |
nothing calls this directly
no test coverage detected