Skip to content
techLOW2026-05-11 04:51 UTC

My Compose App Was Showing the Wrong Theme After Restart — Here's the Fix

A user reported that the app kept resetting to light mode on every restart even though they'd set it to dark. The bug was embarrassingly simple: I was only updating a StateFlow. The ViewModel emitted the new theme, Compose recomposed, everything looked correct — until the process died. On the next c

ADVERTISEMENT
⚡ STAY AHEAD

Events like this, convergence-verified across 689 sources, land in your inbox every Sunday. Free.

GET THE SUNDAY BRIEFING →

RELATED · tech