Commit 1066c76
Fix oversized dialogs in iOS Modern and Android Material themes (#4856)
* Fix oversized dialogs in iOS Modern and Android Material themes
Dialog.show() was producing ~60%x70% screen-sized dialogs even when
empty. Without dialogPosition, Dialog.showImpl falls through to
Form.showDialog which applies hard-coded 20%/10%/20% screen-edge
margins regardless of content. Setting dialogPosition: Center routes
through showPacked so the dialog sizes to its content's preferred
size.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
* Android CI: harden test retry against PackageManager indexing race
The instrumentation test runner already retries decode-only failures
(logcat occasionally drops a chunk line, breaking PNG reassembly) by
restarting the app and re-emitting from the on-device suite. The retry
itself was failing in two ways:
1. After `adb install -r`, `am start -W -a MAIN -c LAUNCHER -p <pkg>`
returned "Activity not started, unable to resolve Intent" because
PackageManager hadn't finished indexing the freshly-installed APK.
The script gave up immediately and skipped the 10-minute retry wait,
so the failed test never got a second chance.
2. The original logcat capture used the device's default ring buffer
(256K-1M), which can wrap mid-suite when 90+ tests each emit ~70
chunk lines. That's the root cause of the decode flakes the retry
was supposed to recover from.
Changes:
- Bump the device-side logcat ring buffer to 16M with `adb logcat -G`
before clearing it. Mitigates buffer wrap during long suites.
- After `adb install`, poll `cmd package resolve-activity --brief`
(max 30s) until pm reports the launcher activity is registered.
- Retry `am start` up to 3 times with a 2s backoff to absorb residual
indexing race.
- Fall back to `monkey -p <pkg> -c LAUNCHER 1` if `am start` still
refuses to resolve the Intent. `pidof` after launch remains the
source of truth for whether the app actually came up.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
---------
Co-authored-by: Claude Opus 4.7 (1M context) <noreply@anthropic.com>1 parent cbe662e commit 1066c76
3 files changed
Lines changed: 105 additions & 24 deletions
File tree
- native-themes
- android-material
- ios-modern
- scripts
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
83 | 83 | | |
84 | 84 | | |
85 | 85 | | |
86 | | - | |
87 | | - | |
88 | | - | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
89 | 91 | | |
90 | 92 | | |
91 | 93 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
91 | 91 | | |
92 | 92 | | |
93 | 93 | | |
94 | | - | |
95 | | - | |
96 | | - | |
97 | | - | |
98 | | - | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
99 | 104 | | |
100 | 105 | | |
101 | 106 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
139 | 139 | | |
140 | 140 | | |
141 | 141 | | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
142 | 152 | | |
143 | 153 | | |
144 | 154 | | |
| |||
370 | 380 | | |
371 | 381 | | |
372 | 382 | | |
| 383 | + | |
| 384 | + | |
| 385 | + | |
| 386 | + | |
| 387 | + | |
| 388 | + | |
| 389 | + | |
| 390 | + | |
| 391 | + | |
| 392 | + | |
| 393 | + | |
| 394 | + | |
| 395 | + | |
| 396 | + | |
| 397 | + | |
| 398 | + | |
| 399 | + | |
| 400 | + | |
| 401 | + | |
| 402 | + | |
| 403 | + | |
| 404 | + | |
| 405 | + | |
| 406 | + | |
| 407 | + | |
| 408 | + | |
| 409 | + | |
| 410 | + | |
| 411 | + | |
| 412 | + | |
| 413 | + | |
| 414 | + | |
| 415 | + | |
| 416 | + | |
373 | 417 | | |
374 | 418 | | |
375 | 419 | | |
| |||
384 | 428 | | |
385 | 429 | | |
386 | 430 | | |
387 | | - | |
388 | | - | |
389 | | - | |
390 | | - | |
391 | | - | |
392 | | - | |
393 | | - | |
394 | | - | |
395 | | - | |
396 | | - | |
397 | | - | |
398 | | - | |
399 | | - | |
400 | | - | |
401 | | - | |
| 431 | + | |
| 432 | + | |
| 433 | + | |
| 434 | + | |
| 435 | + | |
| 436 | + | |
| 437 | + | |
| 438 | + | |
| 439 | + | |
| 440 | + | |
| 441 | + | |
| 442 | + | |
| 443 | + | |
| 444 | + | |
| 445 | + | |
| 446 | + | |
| 447 | + | |
| 448 | + | |
| 449 | + | |
| 450 | + | |
| 451 | + | |
| 452 | + | |
| 453 | + | |
| 454 | + | |
| 455 | + | |
| 456 | + | |
| 457 | + | |
| 458 | + | |
| 459 | + | |
402 | 460 | | |
403 | | - | |
| 461 | + | |
| 462 | + | |
| 463 | + | |
| 464 | + | |
| 465 | + | |
| 466 | + | |
| 467 | + | |
| 468 | + | |
| 469 | + | |
| 470 | + | |
| 471 | + | |
| 472 | + | |
| 473 | + | |
| 474 | + | |
| 475 | + | |
| 476 | + | |
| 477 | + | |
404 | 478 | | |
405 | 479 | | |
406 | 480 | | |
| |||
0 commit comments