未验证 提交 892591da 编写于 作者: M Matt Carroll 提交者: GitHub

Android Embedding PR28: Report app is active to Flutter in...

Android Embedding PR28: Report app is active to Flutter in FlutterFragment.onResume() instead of onPostResume() forwarded from Activity. (#8536)
上级 330c6c16
......@@ -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.
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册