diff --git a/CHANGELOG.md b/CHANGELOG.md index 7de1a4094..f747d7a9c 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,6 +6,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ## [Unreleased] +## [4.0.0-OS5] - 2021-05-14 +### Fix +- Close button has an incorrect name after setting button caption as "Empty" (Android) [RMET-331](https://outsystemsrd.atlassian.net/browse/RMET-331) + ## [3.1.0-OS3] - 2020-01-08 ### Changes - Add compile-time decision for disabling UIWebView [RNMT-3569](https://outsystemsrd.atlassian.net/browse/RNMT-3569) diff --git a/package.json b/package.json index c7a04223f..864d87cdd 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "cordova-plugin-inappbrowser", - "version": "4.0.0-OS1", + "version": "4.0.0-OS5", "description": "Cordova InAppBrowser Plugin", "types": "./types/index.d.ts", "cordova": { diff --git a/plugin.xml b/plugin.xml index e3ac306ae..493d94210 100644 --- a/plugin.xml +++ b/plugin.xml @@ -20,7 +20,7 @@ + version="4.0.0-OS5"> InAppBrowser Cordova InAppBrowser Plugin diff --git a/src/android/InAppBrowser.java b/src/android/InAppBrowser.java index 15a13fe00..d141c0664 100644 --- a/src/android/InAppBrowser.java +++ b/src/android/InAppBrowser.java @@ -690,6 +690,8 @@ public String showWebPage(final String url, HashMap features) { String closeButtonCaptionSet = features.get(CLOSE_BUTTON_CAPTION); if (closeButtonCaptionSet != null) { closeButtonCaption = closeButtonCaptionSet; + } else { + closeButtonCaption = ""; } String closeButtonColorSet = features.get(CLOSE_BUTTON_COLOR); if (closeButtonColorSet != null) {