The periodic refresh was broken because collectLatest on a Room Flow suspends indefinitely, preventing the while loop from advancing. Replace with Flow.first() for one-shot snapshots. Add refresh() method triggered via LifecycleEventEffect(ON_RESUME) so sun times recalculate every time the app comes to foreground. https://claude.ai/code/session_01QD2KVpt2xSRtRALne48g3n |
||
|---|---|---|
| .. | ||
| src/main | ||
| build.gradle.kts | ||
| proguard-rules.pro | ||