Repository navigation
Commit 144bd59
fix(android): keep popup windows above the active window in snapshots (#4037)
* fix(android): keep popup windows above the active window in snapshots
A popup that does not take focus, such as an AutoCompleteTextView
dropdown, is an application window that is neither active nor focused.
The stale-window filter hid every such window, so the popup's items were
missing from snapshots and selectors could not match them. Keep inactive
application windows that sit above the foreground application layer:
they are drawn over it, so they are not hidden from users.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
* refactor(android): inline the single-use window layer comparison
* test(android): pin stale windows at or below the active layer as hidden
---------
Co-authored-by: Claude Opus 5.5 <[email protected]>1 parent 9e4bc2d commit 144bd59
2 files changed
Lines changed: 31 additions & 3 deletions
File tree
- packages/platform-android/src
- src/__tests__
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
55 | 55 | | |
56 | 56 | | |
57 | 57 | | |
58 | | - | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
59 | 61 | | |
60 | 62 | | |
61 | 63 | | |
| |||
66 | 68 | | |
67 | 69 | | |
68 | 70 | | |
69 | | - | |
70 | | - | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
71 | 76 | | |
72 | 77 | | |
73 | 78 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
358 | 358 | | |
359 | 359 | | |
360 | 360 | | |
| 361 | + | |
| 362 | + | |
| 363 | + | |
| 364 | + | |
| 365 | + | |
| 366 | + | |
| 367 | + | |
| 368 | + | |
| 369 | + | |
| 370 | + | |
| 371 | + | |
| 372 | + | |
| 373 | + | |
| 374 | + | |
| 375 | + | |
| 376 | + | |
| 377 | + | |
| 378 | + | |
| 379 | + | |
| 380 | + | |
| 381 | + | |
| 382 | + | |
| 383 | + | |
361 | 384 | | |
362 | 385 | | |
363 | 386 | | |
| |||
0 commit comments