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
Loading
Please register or sign in to comment