wolfskin/app/src
Damontecres 5bfbba193a
Fix issue with home reloading on user switch (#2064)
## Description
When switching users, the current user's home page would start a reload
during the switch. This PR fixes that by comparing the user switch.

The underlying cause is that Room's flow is blunt and emits whenever the
table updates. So [during the user
switch](9b02804075/app/src/main/java/com/github/damontecres/wholphin/data/ServerRepository.kt (L117-L118))
the table is updated causing [current user to
emit](9b02804075/app/src/main/java/com/github/damontecres/wholphin/data/ServerRepository.kt (L71))
and the current user flow is updated causing the new user to emit.

### Related issues
N/A

### Testing
Emulator, switching users and switching locales

Can observe that `UserSwitchListener` only trigger once per user switch
instead of twice

## Screenshots
N/A

## AI or LLM usage
None
2026-10-11 09:59:50 -04:00
..
androidTest/java/com/github/damontecres/wholphin/test Fix issues when the system kills the app during playback (#1116) 2026-03-18 18:09:13 -04:00
appstore Dev: use build product flavors for app store release (#1205) 2026-04-06 15:24:20 -04:00
debug/res/values Dev: use build product flavors for app store release (#1205) 2026-04-06 15:24:20 -04:00
main Fix issue with home reloading on user switch (#2064) 2026-10-11 09:59:50 -04:00
test Various bug fixes (#2010) 2026-10-08 08:09:20 -04:00