trying to fix android null exception when bundle is null for InAppBrowserActivity and ChromeCustomTabsActivity

This commit is contained in:
Lorenzo Pichilli 2022-04-17 18:22:01 +02:00
parent cdb29caefc
commit 621d524dd6
3 changed files with 5 additions and 2 deletions

View File

@ -35,6 +35,7 @@
- Merged "WIP - expose content-disposition and content-length from android" [#1088](https://github.com/pichillilorenzo/flutter_inappwebview/pull/1088) (thanks to [ashank96](https://github.com/ashank96))
- Merged "Fix ios persistance when using sharedCookie" [#1093](https://github.com/pichillilorenzo/flutter_inappwebview/pull/1093) (thanks to [EA-YOUHOU](https://github.com/EA-YOUHOU))
- Merged "Fixes zoomBy with floats (iOS)" [#1109](https://github.com/pichillilorenzo/flutter_inappwebview/pull/1109) (thanks to [Manuito83](https://github.com/Manuito83))
- Merged "Build on and support Android 12 SDK 31" [#1111](https://github.com/pichillilorenzo/flutter_inappwebview/pull/1111) (thanks to [carloserazo47](https://github.com/carloserazo47))
## 5.3.2

View File

@ -43,7 +43,8 @@ public class ChromeCustomTabsActivity extends Activity implements MethodChannel.
setContentView(R.layout.chrome_custom_tabs_layout);
Bundle b = getIntent().getExtras();
assert b != null;
if (b == null) return;
id = b.getString("id");
String managerId = b.getString("managerId");

View File

@ -66,7 +66,8 @@ public class InAppBrowserActivity extends AppCompatActivity implements InAppBrow
super.onCreate(savedInstanceState);
Bundle b = getIntent().getExtras();
assert b != null;
if (b == null) return;
id = b.getString("id");
String managerId = b.getString("managerId");