From 5c9e134bf82c2b342e5a4067ba1ede88a1e6c190 Mon Sep 17 00:00:00 2001 From: Chris Bracken Date: Wed, 8 Jan 2020 18:07:36 -0800 Subject: [PATCH] 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. --- .../android/io/flutter/app/FlutterFragmentActivity.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/shell/platform/android/io/flutter/app/FlutterFragmentActivity.java b/shell/platform/android/io/flutter/app/FlutterFragmentActivity.java index 2aa0d131f..ef3f19b9f 100644 --- a/shell/platform/android/io/flutter/app/FlutterFragmentActivity.java +++ b/shell/platform/android/io/flutter/app/FlutterFragmentActivity.java @@ -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); } -- GitLab