Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixed appearing of text editing menu in Selection Container in iOS #1269

Merged

Conversation

mazunin-v-jb
Copy link

@mazunin-v-jb mazunin-v-jb commented Apr 12, 2024

Proposed Changes

  • Added creating a text interaction view (which is required to show the edit menu by long press / double tap on the text) in case when there is no one (i.e. only selection container presents of the screen without any other text editing views)
  • Fixed its position on the screen (changes from androidx: Fix content rect calculation in SelectionManager #1270)

Testing

Test: Open test app, go Components -> Selection, try to select text in selection container

Issues Fixed

Fixes:

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.

@mazunin-v-jb mazunin-v-jb self-assigned this Apr 12, 2024
@mazunin-v-jb mazunin-v-jb requested review from elijah-semyonov and ASalavei and removed request for elijah-semyonov and ASalavei April 12, 2024 16:05
@mazunin-v-jb mazunin-v-jb marked this pull request as draft April 12, 2024 16:05
@mazunin-v-jb mazunin-v-jb marked this pull request as ready for review April 15, 2024 14:22

updateView()

textUIView?.let {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This lines looks identical to L276 . Could you please group them?

@mazunin-v-jb mazunin-v-jb requested review from MatkovIvan and removed request for elijah-semyonov April 18, 2024 15:39
@mazunin-v-jb mazunin-v-jb marked this pull request as draft April 18, 2024 15:45
@mazunin-v-jb mazunin-v-jb force-pushed the v.mazunin/context-menu-in-cupertino-selection-container branch from ade8253 to 67166a9 Compare April 18, 2024 16:15
@mazunin-v-jb mazunin-v-jb marked this pull request as ready for review April 18, 2024 16:15
@MatkovIvan MatkovIvan merged commit 73ed2f5 into jb-main Apr 19, 2024
6 checks passed
@MatkovIvan MatkovIvan deleted the v.mazunin/context-menu-in-cupertino-selection-container branch April 19, 2024 12:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants