gcx/frontend/genex-mobile/lib/core/updater
hailin 192bc476c4 fix(mobile): move _startDownload to didChangeDependencies to avoid initState context crash
context.t() (Localizations) cannot be called during initState() — inherited
widgets are not yet mounted. When download fails instantly (e.g. no network),
setState with context.t() inside _startDownload fired synchronously within
initState, causing:
  dependOnInheritedWidgetOfExactType called before initState() completed

Fix: add _downloadStarted guard flag; call _startDownload() from
didChangeDependencies() instead of initState(), where context is fully ready.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-03-07 09:57:38 -08:00
..
channels fix(mobile): move _startDownload to didChangeDependencies to avoid initState context crash 2026-03-07 09:57:38 -08:00
models fix(admin-service+mobile): 修复 OTA 下载三处 Bug 2026-03-03 22:19:10 -08:00
apk_installer.dart feat: 三端集成 App升级 + 内部推送 + FCM外部推送框架 (genex-mobile/admin-app/mobile) 2026-02-13 07:02:14 -08:00
app_market_detector.dart feat: 三端集成 App升级 + 内部推送 + FCM外部推送框架 (genex-mobile/admin-app/mobile) 2026-02-13 07:02:14 -08:00
download_manager.dart debug(mobile): 下载失败诊断日志 2026-03-07 08:53:05 -08:00
update_service.dart fix(genex-mobile): 还原 api.gogenex.com + 增加更新检测日志 2026-03-03 23:17:12 -08:00
version_checker.dart fix(mobile): fix version check API and platform detection in both apps 2026-03-07 00:50:42 -08:00