Repository navigation
Commit ce6d964
fix(android-nav3): Ignore no-op nav transactions
Treat no-op transactions from scopes.startTransaction as 'not started' in BackStackObserver.
This prevents ignored or incompatible nav transactions from being bound to the default scope, which could otherwise leave a finished no-op transaction attached and block later real transactions until the next top-of-stack change.
Add a regression test proving the observer leaves scope.transaction unset when startTransaction returns NoOpTransaction.
Co-Authored-By: OpenAI GPT-5.4 <noreply@openai.com>1 parent 67c8ed4 commit ce6d964
2 files changed
Lines changed: 19 additions & 0 deletions
File tree
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
326 | 326 | | |
327 | 327 | | |
328 | 328 | | |
| 329 | + | |
| 330 | + | |
| 331 | + | |
| 332 | + | |
329 | 333 | | |
330 | 334 | | |
331 | 335 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
| 11 | + | |
11 | 12 | | |
12 | 13 | | |
13 | 14 | | |
| |||
574 | 575 | | |
575 | 576 | | |
576 | 577 | | |
| 578 | + | |
| 579 | + | |
| 580 | + | |
| 581 | + | |
| 582 | + | |
| 583 | + | |
| 584 | + | |
| 585 | + | |
| 586 | + | |
| 587 | + | |
| 588 | + | |
| 589 | + | |
| 590 | + | |
| 591 | + | |
577 | 592 | | |
578 | 593 | | |
579 | 594 | | |
| |||
0 commit comments