Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix content rect calculation in SelectionManager (#1270)
## Proposed Changes **Cherry-picked from androidx** Fix a typo in `SelectionManager.getContentRect()` that results in an invalid rect being calculated, causing text toolbar to not show under certain conditions. Fixes: b/332782845 Test: manual Change-Id: I153b99f4146d870182af2898d9a675ed6ffa15e4 ## Testing Test: Open test app, go Components -> Selection, try to select text in selection container ## Issues Fixed Fixes: appearing of editing menu in selection container in wrong position https://youtrack.jetbrains.com/issue/COMPOSE-1190/iOS-Selection-Container-cant-show-options-menu JetBrains/compose-multiplatform#4322 b/332782845 in Google ## Google CLA You need to sign the Google Contributor’s License Agreement at https://cla.developers.google.com/. This is needed since we synchronise most of the code with Google’s AOSP repository. Signing this agreement allows us to synchronise code from your Pull Requests as well. Co-authored-by: Albert Chang <mxalbert1996@gmail.com>
- Loading branch information