Skip to content

General: Fix brief screen flash before onboarding on fresh install#403

Merged
d4rken merged 1 commit intomainfrom
fix/onboarding-dashboard-flash
Feb 24, 2026
Merged

General: Fix brief screen flash before onboarding on fresh install#403
d4rken merged 1 commit intomainfrom
fix/onboarding-dashboard-flash

Conversation

@d4rken
Copy link
Copy Markdown
Member

@d4rken d4rken commented Feb 24, 2026

What changed

Fixed a brief flash of the main dashboard screen before the onboarding screen appeared on fresh installs.

Technical Context

  • Root cause: nav backstack was hardcoded to start with the Overview destination, and the onboarding redirect happened asynchronously in the ViewModel — too late to prevent the first frame from rendering
  • Fix: moved the onboarding check into MainActivity.onCreate() so the correct start destination is determined before the backstack is created
  • Removed the redundant async onboarding check from OverviewViewModel.init

Check onboarding state in MainActivity before creating the NavBackStack,
so the correct screen is shown from the first frame. Removes the
redundant async check from OverviewViewModel that caused the dashboard
to briefly flash before redirecting to onboarding on fresh installs.
@d4rken d4rken added the bug Something isn't working label Feb 24, 2026
@d4rken d4rken merged commit 679250f into main Feb 24, 2026
9 checks passed
@d4rken d4rken deleted the fix/onboarding-dashboard-flash branch February 24, 2026 15:50
@d4rken d4rken changed the title fix(ui): Prevent dashboard flash before onboarding on fresh install General: Fix brief screen flash before onboarding on fresh install Mar 3, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant