Skip to content

If I switch apps while typing text, the text is lost #7033

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

Closed
Hixie opened this issue Nov 28, 2016 · 4 comments
Closed

If I switch apps while typing text, the text is lost #7033

Hixie opened this issue Nov 28, 2016 · 4 comments
Labels
a: text input Entering text in a text field or keyboard related problems

Comments

@Hixie
Copy link
Contributor

Hixie commented Nov 28, 2016

  1. Type in a Flutter text field on Android.
  2. Double tap the square system button to switch to another app. I was switching to the "Add network" dialog in wifi settings.
  3. Double tap back. The text you were typing is gone.
@eseidelGoogle
Copy link
Contributor

#6827 is possibly related?

@Hixie
Copy link
Contributor Author

Hixie commented Nov 29, 2016

I don't think so; the app itself isn't being shut down (if it was, we'd lose more than just the text field, we'd go back to the start of the app).

@Hixie Hixie added the a: text input Entering text in a text field or keyboard related problems label Nov 29, 2016
@jason-simmons
Copy link
Member

The task switcher triggers a pause/resume cycle, and after the activity resumes Android calls FlutterView.onCreateInputConnection.

The TextInputPlugin will create an InputConnection based on the "incoming state" supplied by RawInputState in the Flutter framework. However, the plugin's "incoming state" may be out of sync with the "outgoing state" sent to the framework by the InputConnection after each change to the text.

How should the incoming state be kept in sync? Is the framework supposed to echo each outgoing state change back to the incoming state? Or should the incoming state be updated internally within the plugin?

@abarth

@github-actions
Copy link

github-actions bot commented Sep 5, 2021

This thread has been automatically locked since there has not been any recent activity after it was closed. If you are still experiencing a similar issue, please open a new bug, including the output of flutter doctor -v and a minimal reproduction of the issue.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Sep 5, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
a: text input Entering text in a text field or keyboard related problems
Projects
None yet
Development

No branches or pull requests

3 participants