wolfskin/app/src/main
Damontecres 32a56e8387
Wait for switched user's home settings before fetching data (#1981)
## Description
There is a race condition when switching users between
`HomeViewModel.init` and `HomeSetttingsService.loadCurrentSettings`.
This happens more often if the new user doesn't have a customized home
page. The result is that the previous user's home page settings are used
for the initial load of the home page.

This PR fixes this by collecting the flows for current user & home
settings, waiting until both are valid and refer to the same user, then
fetch the data.

### Related issues
Fixes #1976
Maybe related (and fixes) #1980, but need to investigate more

### Testing
Emulator. It's easy to reproduce by adding a manual `delay(2.seconds)`
at the start of `HomeSetttingsService.loadCurrentSettings`.

## Screenshots
N/A

## AI or LLM usage
None
2026-09-17 14:41:36 -04:00
..
assets Add experimental MPV player backend (#161) 2025-11-16 18:46:25 -05:00
java/com/github/damontecres/wholphin Wait for switched user's home settings before fetching data (#1981) 2026-09-17 14:41:36 -04:00
proto Adds option to dim the screensaver (#1834) 2026-08-17 22:53:40 -04:00
res Run pre-commit 2026-09-12 18:43:14 -04:00
seerr Fix some bugs on discover pages (#1832) 2026-08-13 13:57:51 -04:00
AndroidManifest.xml Update API level to Android 17 (#1908) 2026-08-29 21:35:58 -04:00
ic_launcher-playstore.png Add icons 2025-10-12 17:41:54 -04:00