You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This state is lost when the activity (or activity hosting the fragment) is destroyed and recreated. This is fine when the engine is also destroyed, but if a cached engine is being used then the Flutter routes are not destroyed, so the two get out of sync.
We can fix this by overriding to save this state in onSaveInstanceState (conditionally), and then using the state when recreating the Activity/Fragment, though we will have to be careful to ensure the conditions match exactly when the engine is going to stay around.
The text was updated successfully, but these errors were encountered:
Predictive back support was recently added, and included changes that maintain a state of whether the framework should handle back events or not
https://github.com/flutter/engine/blob/main/shell/platform/android/io/flutter/embedding/android/FlutterActivity.java#L724
(and similar for FlutterFragment).
This state is lost when the activity (or activity hosting the fragment) is destroyed and recreated. This is fine when the engine is also destroyed, but if a cached engine is being used then the Flutter routes are not destroyed, so the two get out of sync.
We can fix this by overriding to save this state in
onSaveInstanceState
(conditionally), and then using the state when recreating the Activity/Fragment, though we will have to be careful to ensure the conditions match exactly when the engine is going to stay around.The text was updated successfully, but these errors were encountered: