-
Notifications
You must be signed in to change notification settings - Fork 28.4k
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
Comments
#6827 is possibly related? |
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). |
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? |
…te (either incoming or outgoing) Fixes flutter/flutter#7033
…te (either incoming or outgoing) (#3283) Fixes flutter/flutter#7033
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 |
The text was updated successfully, but these errors were encountered: