diff --git a/CHANGELOG.md b/CHANGELOG.md index 252c275..b15598a 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -22,6 +22,11 @@ in case of vulnerabilities. ## [Unreleased] +## [3.6.3] - 2021-07-05 + +### Fixed +- fix(android): Fix error com.facebook.react.bridge.NoSuchKeyException by [@thuongtv-vn](https://github.com/thuongtv-vn) ([#283](https://github.com/proyecto26/react-native-inappbrowser/pull/283)). + ## [3.6.2] - 2021-07-03 ### Fixed @@ -197,7 +202,8 @@ Missing tags for previous versions 🤷‍♂ - Fix `EventBusException` on **Android** by [@Almouro](https://github.com/Almouro) ([9cf4cbb](https://github.com/proyecto26/react-native-inappbrowser/commit/9cf4cbb58d55c8b534dabac6791e6a2a5428253f)). -[Unreleased]: https://github.com/proyecto26/react-native-inappbrowser/compare/v3.6.2...HEAD +[Unreleased]: https://github.com/proyecto26/react-native-inappbrowser/compare/v3.6.3...HEAD +[3.6.3]: https://github.com/proyecto26/react-native-inappbrowser/compare/v3.6.2...v3.6.3 [3.6.2]: https://github.com/proyecto26/react-native-inappbrowser/compare/v3.6.1...v3.6.2 [3.6.1]: https://github.com/proyecto26/react-native-inappbrowser/compare/v3.6.0...v3.6.1 [3.6.0]: https://github.com/proyecto26/react-native-inappbrowser/compare/v3.5.1...v3.6.0 diff --git a/android/src/main/java/com/proyecto26/inappbrowser/RNInAppBrowser.java b/android/src/main/java/com/proyecto26/inappbrowser/RNInAppBrowser.java index 745abe0..b3bce8b 100644 --- a/android/src/main/java/com/proyecto26/inappbrowser/RNInAppBrowser.java +++ b/android/src/main/java/com/proyecto26/inappbrowser/RNInAppBrowser.java @@ -64,10 +64,11 @@ public class RNInAppBrowser { private static final Pattern animationIdentifierPattern = Pattern.compile("^.+:.+/"); public Integer setColor(CustomTabsIntent.Builder builder, final ReadableMap options, String key, String method, String colorName) { - String colorString = options.getString(key); + String colorString = null; Integer color = null; try { - if (colorString != null) { + if (options.hasKey(key)) { + colorString = options.getString(key); color = Color.parseColor(colorString); Method findMethod = builder.getClass().getDeclaredMethod(method, int.class); findMethod.invoke(builder, color); diff --git a/package.json b/package.json index 4e4bd6e..a0f44b8 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "react-native-inappbrowser-reborn", - "version": "3.6.2", + "version": "3.6.3", "description": "InAppBrowser for React Native", "main": "index.js", "scripts": {