-
Notifications
You must be signed in to change notification settings - Fork 6k
[Android] Send connectionClosed message when keyboard becomes invisible to ensure framework focus state is correct. #40746
Conversation
It looks like this pull request may not have tests. Please make sure to add tests before merging. If you need an exemption to this rule, contact Hixie on the #hackers channel in Chat (don't just cc him here, he won't see it! He's on Discord!). If you are not sure if you need tests, consider this rule of thumb: the purpose of a test is to make sure someone doesn't accidentally revert the fix. Ask yourself, is there anything in your PR that you feel it is important we not accidentally revert back to how it was before your fix? Reviewers: Read the Tree Hygiene page and make sure this patch meets those guidelines before LGTMing. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This looks reasonable to me but I would like and LGTM from someone who understands this code better. Possibly @LongCatIsLooong
Ping @LongCatIsLooong for +1. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@LongCatIsLooong is going to be OOO for a couple of weeks. We eyeballed this in triage and it seemed fine.
Thx @chinmaygarde ^_^ . Adding label for merging. ^_^ |
…le to ensure framework focus state is correct. (flutter#40746) [Android] Send connectionClosed message when keyboard becomes invisible to ensure framework focus state is correct.
…es invisible to ensure framework focus state is correct. (flutter/engine#40746)
… invisible to ensure framework focus state is correct." (#41211) Reverts #40746 Googler bug: b/278174021 Failing on ``` shell/platform/android/io/flutter/plugin/editing/TextInputPlugin.java:239: Error: This method should only be accessed from tests or within private scope [VisibleForTests] imeSyncCallback.remove(); ```
Emm any plan to reland this? I think this is necessary. What changes we should make to reland this? |
@CaseyHillers @reidbaker I think the issue in revert PR is still exists on See #41211 (comment) And code in still have issue:
Maybe it is not on the PR #40746 I m not sure we should use |
I think this PR is unnecessary. Is there a situation where I want to keep the focus when the keyboard disappears? For example, when I pop up a custom emoji picker, I will put away the keyboard. At this time, I want the focus to remain on above the input box. As for the situation described above, we can choose focus state by observing whether the keyboard is visible. |
Fix:
Before this patch:
before.fix.mp4
After this patch:
after.fix.mp4
Pre-launch Checklist
///
).