mirror of
https://github.com/atsunatsu/Look4Sat.git
synced 2026-10-02 03:15:37 +00:00
fetchReportBody is a synchronous HttpURLConnection call (up to 30s connect + 120s read) but was invoked directly from a Main-dispatcher viewModelScope coroutine: the whole UI froze for the duration of the request, then Android killed the app with an ANR dialog. Wrap both fetch methods in withContext(Dispatchers.IO). Bug present since the endpoint was introduced.