Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit 213dd25e authored by Qinchen Gu's avatar Qinchen Gu
Browse files

Set view bounds in parent by diff'ing the bounds in screen with parent.

The getBoundsInParent() has been deprecated, the getBoundsInScreen() is the recommended alternative for this. The Jetpack compose only sets the boundary via setBoundsInScreen() (given it's the new API), thus the getBoundsInParent() is always returning 0. Literally the bounding boxes of the AssistStructure are broken with Jetpack compose.

Now update the code to use the recommended alternatives.

Flag: android.view.flags.calculate_bounds_in_parent_from_bounds_in_screen
Bug: 366131857
Test: atest CtsAutoFillServiceTestCases
      dump Assist Structure view hierarchy and check for bounds.
Change-Id: I78717c5d2faff06b9303adcfd8af1c8eeddf11fe
parent 88d3e14f
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment