Skip to content
This repository was archived by the owner on Feb 25, 2025. It is now read-only.

Reland: Implement delayed event synthesis key event handling for Android #20736

Merged
merged 2 commits into from
Aug 28, 2020

Conversation

gspencergoog
Copy link
Contributor

Description

This re-lands the key event synthesis implementation for Android (Original PR: #19024, Revert PR: #19956). The only difference is sending the synthesized key events to the root view instead of the current view.

Without sending it to the root view, the system doesn't have any chance of handling keys like the back button. The event will still not be sent to the framework twice, since we turn off event propagation while re-dispatching the event.

Related Issues

Tests

  • The code now passes the integration tests that found the problem with the original PR.
  • Added tests to make sure that the root view is called when an event is not handled.

@gspencergoog gspencergoog requested a review from dkwingsmt August 24, 2020 21:56
@auto-assign auto-assign bot requested a review from gaaclarke August 24, 2020 21:59
@gspencergoog gspencergoog removed the request for review from gaaclarke August 24, 2020 22:01
Copy link
Contributor

@dkwingsmt dkwingsmt left a comment

Choose a reason for hiding this comment

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

LGTM

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants