Fixed
Status Update
Comments
se...@google.com <se...@google.com>
si...@google.com <si...@google.com> #2
please feel free to update priority.
ap...@google.com <ap...@google.com> #3
Project: platform/frameworks/support
Branch: androidx-main
commit f4b892cb2d511d397d24e62e2bcc6fe561b1d7f9
Author: Halil Ozercan <halilibo@google.com>
Date: Thu May 11 16:52:35 2023
Guard LayoutCoordinates in TextFieldState
CoreTextField uses layoutCoordinates in TextFieldState to only calculate relative positioning, focused rectangle area, etc. We are safer to fully guard layoutCoordinates by only providing it when it's attached.
Fix: b/281984756
Bug: b/215116019
Test: :compose:foundation:foundation:cAT
Change-Id: I31244f4b8feafbac62a3f126b16e641e136d70b9
M compose/foundation/foundation/src/commonMain/kotlin/androidx/compose/foundation/text/CoreTextField.kt
https://android-review.googlesource.com/2583083
Branch: androidx-main
commit f4b892cb2d511d397d24e62e2bcc6fe561b1d7f9
Author: Halil Ozercan <halilibo@google.com>
Date: Thu May 11 16:52:35 2023
Guard LayoutCoordinates in TextFieldState
CoreTextField uses layoutCoordinates in TextFieldState to only calculate relative positioning, focused rectangle area, etc. We are safer to fully guard layoutCoordinates by only providing it when it's attached.
Fix:
Bug:
Test: :compose:foundation:foundation:cAT
Change-Id: I31244f4b8feafbac62a3f126b16e641e136d70b9
M compose/foundation/foundation/src/commonMain/kotlin/androidx/compose/foundation/text/CoreTextField.kt
Description
BasicTextField should check whether existing layoutCoordinates belong to an attached node before continuing `notifyFocusedRect` logic.