Skip to content

Fix crash when Navigation 3 back stack becomes empty#1822

Merged
anilbeesetti merged 2 commits into
mainfrom
codex/fix-empty-nav-display-crash
Jul 19, 2026
Merged

Fix crash when Navigation 3 back stack becomes empty#1822
anilbeesetti merged 2 commits into
mainfrom
codex/fix-empty-nav-display-crash

Conversation

@anilbeesetti

Copy link
Copy Markdown
Owner

Summary

  • preserve each top-level Navigation 3 root when feature screens navigate up
  • repair previously restored empty tab stacks before composing NavDisplay
  • add regression tests for guarded popping and empty-stack restoration

Testing

  • ./gradlew :app:ktlintCheck :app:testDebugUnitTest :app:assembleDebug --console=plain

…isplay-crash

# Conflicts:
#	app/src/main/java/dev/anilbeesetti/nextplayer/navigation/MediaNavGraph.kt
#	app/src/main/java/dev/anilbeesetti/nextplayer/navigation/NetworkNavGraph.kt
@anilbeesetti
anilbeesetti merged commit 9f4d056 into main Jul 19, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant