Skip to content

fix profile selection - #579

Merged
ProdigyV21 merged 1 commit into
ProdigyV21:mainfrom
silentbil:fix_profile_selection
Aug 17, 2026
Merged

fix profile selection#579
ProdigyV21 merged 1 commit into
ProdigyV21:mainfrom
silentbil:fix_profile_selection

Conversation

@silentbil

Copy link
Copy Markdown
Collaborator

● fix(profile): tapping the active profile no longer does nothing

Selecting a profile on "Who's watching" often did nothing until you tapped several times.

The LaunchedEffect that navigates read navigateTriggered without it being one of its keys, so the tap never re-ran it — navigation relied on observing a change in activeProfile.id or isSwitchingProfile. Re-selecting the active profile changes neither: the id is unchanged, and isSwitchingProfile flips true
→ false within one frame, which the conflating StateFlow collapses before Compose reads it.

Surfaced by d9e49b1, which skipped the setActiveProfile disk write for the same profile — the write had incidentally kept the flag observable for a frame.

Fix: add navigateTriggered to the effect's keys. The !isSwitchingProfile guard is untouched, so real switches still defer until done.

@github-actions github-actions Bot added the area: android Changes to the Android app or Gradle build label Aug 16, 2026
@ProdigyV21
ProdigyV21 merged commit 5c83436 into ProdigyV21:main Aug 17, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area: android Changes to the Android app or Gradle build

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants