Skip to content

Fix: Fix crash when leaving the device profile screen#453

Merged
d4rken merged 1 commit intomainfrom
fix/exposed-dropdown-menu-crash
Mar 20, 2026
Merged

Fix: Fix crash when leaving the device profile screen#453
d4rken merged 1 commit intomainfrom
fix/exposed-dropdown-menu-crash

Conversation

@d4rken
Copy link
Copy Markdown
Member

@d4rken d4rken commented Mar 20, 2026

What changed

Fixed a crash that could happen when navigating away from the device profile creation/edit screen.

Technical Context

  • Root cause: Material3's ExposedDropdownMenuBox has a bug where its internal SoftKeyboardListener accesses layout coordinates after the composable detaches from the view tree, throwing IllegalStateException: LayoutCoordinate operations are only valid when isAttached is true
  • Fix: Bumped Compose BOM from 2025.06.01 to 2025.10.00, which includes Material3 1.4.0 with the missing isAttached guard in getAnchorBounds()
  • Also updated deprecated MenuAnchorTypeExposedDropdownMenuAnchorType (renamed in Material3 1.4.0)

@d4rken d4rken added the bug Something isn't working label Mar 20, 2026
@d4rken d4rken merged commit 5243346 into main Mar 20, 2026
9 checks passed
@d4rken d4rken deleted the fix/exposed-dropdown-menu-crash branch March 20, 2026 17:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant