feat: prefetch AMSAT status on foreground

Start AMSAT status prefetch when the app enters foreground and share the in-flight request with the status page fetch path to avoid duplicate network requests.
This commit is contained in:
atsunatsu committed 2026-08-28 00:41:32 +08:00
1 parent 7924a6f69e
commit bc6e065804
5 files changed
+88 -25

No files matched your search

@@ -12,6 +12,9 @@ interface IAmSatRepository {
/** Fetch and parse the AMSAT status page; null on failure. */
suspend fun fetchStatus(forceRefresh: Boolean = false): SatStatusPage?
/** Warm the foreground-session cache without forcing a network reload. */
suspend fun prefetchStatus()
/** Clear the foreground-session status cache. */
fun clearStatusCache()