Skip to content

Commit

Permalink
Merge pull request #29 from OutSystems/fix/empty-close-button
Browse files Browse the repository at this point in the history
RMET-331: Set close button text to an empty string if no closeButtonCaption is provided
  • Loading branch information
andregrillo authored May 14, 2021
2 parents 1f8477b + 73407d9 commit d34f8b6
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 2 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -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": {
Expand Down
2 changes: 1 addition & 1 deletion plugin.xml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@

<plugin xmlns="http://apache.org/cordova/ns/plugins/1.0"
id="cordova-plugin-inappbrowser"
version="4.0.0-OS1">
version="4.0.0-OS5">

<name>InAppBrowser</name>
<description>Cordova InAppBrowser Plugin</description>
Expand Down
2 changes: 2 additions & 0 deletions src/android/InAppBrowser.java
Original file line number Diff line number Diff line change
Expand Up @@ -690,6 +690,8 @@ public String showWebPage(final String url, HashMap<String, String> 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) {
Expand Down

0 comments on commit d34f8b6

Please sign in to comment.