未验证 提交 5c9e134b 编写于 作者: C Chris Bracken 提交者: GitHub

Add missing super.onNewIntent() call (#15328)

From the onNewIntent docs:

    If you are handling new intents and may be making changes to the
    fragment state, you want to be sure to call through to the
    super-class here first. Otherwise, if your state is saved but the
    activity is not stopped, you could get an onNewIntent() call which
    happens before onResume() and trying to perform fragment operations
    at that point will throw IllegalStateException because the fragment
    manager thinks the state is still saved.
上级 5759a437
......@@ -101,7 +101,7 @@ public class FlutterFragmentActivity
super.onBackPressed();
}
}
@Override
protected void onStart() {
super.onStart();
......@@ -141,6 +141,7 @@ public class FlutterFragmentActivity
@Override
protected void onNewIntent(Intent intent) {
super.onNewIntent(intent);
eventDelegate.onNewIntent(intent);
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册