Android Embedding PR28: Report app is active to Flutter in FlutterFragment.onResume() instead of onPostResume() forwarded from Activity. (flutter/engine#8536)
This commit is contained in:
@@ -442,12 +442,16 @@ public class FlutterFragment extends Fragment {
|
||||
return FlutterView.TransparencyMode.valueOf(transparencyModeName);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onResume() {
|
||||
super.onResume();
|
||||
flutterEngine.getLifecycleChannel().appIsResumed();
|
||||
}
|
||||
|
||||
// TODO(mattcarroll): determine why this can't be in onResume(). Comment reason, or move if possible.
|
||||
public void onPostResume() {
|
||||
Log.d(TAG, "onPostResume()");
|
||||
if (flutterEngine != null) {
|
||||
flutterEngine.getLifecycleChannel().appIsResumed();
|
||||
|
||||
// TODO(mattcarroll): find a better way to handle the update of UI overlays than calling through
|
||||
// to platformPlugin. We're implicitly entangling the Window, Activity, Fragment,
|
||||
// and engine all with this one call.
|
||||
|
||||
Reference in New Issue
Block a user