Commit b927305
committed
fix(navigation): add equals/hashCode to ModalBottomSheetScene to prevent duplicate sheets
The navigation3 library upgrade from 1.0.1 to 1.1.0 introduced persistent
tracking of overlay scenes via a SnapshotStateList. It checks
`!currentOverlayScenes.contains(it)` before adding new scenes, which
relies on equals(). ModalBottomSheetScene was a plain class with no
equals()/hashCode(), so every recalculation created a non-equal instance
that was added as a duplicate — causing two sheets to animate up
simultaneously when returning from Phantom wallet deeplinks.1 parent c356380 commit b927305
1 file changed
Lines changed: 8 additions & 0 deletions
File tree
Lines changed: 8 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
67 | 67 | | |
68 | 68 | | |
69 | 69 | | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
70 | 78 | | |
71 | 79 | | |
72 | 80 | | |
| |||
0 commit comments