Skip to content

Commit 53f627f

Browse files
Merge pull request #1984 from ShuheiSuzuki-07/bugfix/issue-1983
issue #1983: Fixed to prevent Activity from being restored
2 parents b2b1ddd + 7e1ba2c commit 53f627f

File tree

1 file changed

+5
-0
lines changed
  • flutter_inappwebview_android/android/src/main/java/com/pichillilorenzo/flutter_inappwebview_android/in_app_browser

1 file changed

+5
-0
lines changed

flutter_inappwebview_android/android/src/main/java/com/pichillilorenzo/flutter_inappwebview_android/in_app_browser/InAppBrowserActivity.java

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,11 @@ public class InAppBrowserActivity extends AppCompatActivity implements InAppBrow
8282
protected void onCreate(Bundle savedInstanceState) {
8383
super.onCreate(savedInstanceState);
8484

85+
if (savedInstanceState != null) {
86+
finish();
87+
return;
88+
}
89+
8590
Bundle b = getIntent().getExtras();
8691
if (b == null) return;
8792

0 commit comments

Comments
 (0)