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 an Android keyboard entry bug that was introduced by the embedding refactor. (#28438) #7954

Conversation

matthew-carroll
Copy link
Contributor

The Android embedding refactor inadvertently stopped storing the mLastInputConnection in FlutterView. That mistake broke certain types of text input.

The chosen solution in this PR is to make TextInputPlugin a dependency of AndroidKeyProcessor such that AndroidKeyProcessor can ask TextInputPlugin for the last InputConnection and resurrect the behavior that was lost from FlutterView.

I have verified that this change resolves the specific emulator issue logged in the ticket. I have not verified with a physical keyboard.

@Hixie
Copy link
Contributor

Hixie commented Feb 26, 2019

test?

@matthew-carroll
Copy link
Contributor Author

@dnfield would you mind adding a device lab test? or would you like me to do it (I may need some assistance)?

@dnfield
Copy link
Contributor

dnfield commented Feb 26, 2019

I can help!

@matthew-carroll
Copy link
Contributor Author

@jonahwilliams and I tried to write a test but ADB seems to behave differently than a host keyboard. We are merging this now without a test based on direct proof that the original ticket is fixed. We want to merge in before a major Dart roll. CC @bkonyi

@matthew-carroll matthew-carroll merged commit 18ad03d into flutter:master Feb 26, 2019
engine-flutter-autoroll added a commit to engine-flutter-autoroll/flutter that referenced this pull request Feb 26, 2019
engine-flutter-autoroll added a commit to engine-flutter-autoroll/flutter that referenced this pull request Feb 26, 2019
engine-flutter-autoroll added a commit to engine-flutter-autoroll/flutter that referenced this pull request Feb 26, 2019
engine-flutter-autoroll added a commit to engine-flutter-autoroll/flutter that referenced this pull request Feb 26, 2019
engine-flutter-autoroll added a commit to flutter/flutter that referenced this pull request Feb 26, 2019
flutter/engine@1d0615a...31d31e6

git log 1d0615a..31d31e6 --no-merges --oneline
31d31e6 Android PR 7: Introduce structure of FlutterActivity and FlutterFragment (flutter/engine#7912)
3962bbd Roll src/third_party/skia bcfbf6e94c22..ac6d4c0c8eae (1 commits) (flutter/engine#7958)
cb9e673 Roll src/third_party/dart 7a63d31151..f7e435ac26 (252 commits)
18ad03d Fixed an Android keyboard entry bug that was introduced by the embedding refactor. (#28438) (flutter/engine#7954)
a61056a Roll src/third_party/skia 0b2c05470bab..bcfbf6e94c22 (8 commits) (flutter/engine#7956)
b36f903 Roll src/third_party/dart c92d5ca288..7a63d31151 (6 commits) (flutter/engine#7955)

The AutoRoll server is located here: https://autoroll.skia.org/r/flutter-engine-flutter-autoroll

Documentation for the AutoRoller is here:
https://skia.googlesource.com/buildbot/+/master/autoroll/README.md

If the roll is causing failures, please contact the current sheriff (garyq@google.com), and stop
the roller if necessary.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants