Skip to content

Commit 28b2f1c

Browse files
committed
Merge branch 'release/4.3.1'
2 parents c56fae3 + 7be9884 commit 28b2f1c

File tree

3 files changed

+11
-9
lines changed

3 files changed

+11
-9
lines changed

package.json

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "cordova-plugin-broadcaster",
3-
"version": "4.3.0",
3+
"version": "4.3.1",
44
"description": "Allow send message from Javascript to Native",
55
"cordova": {
66
"id": "cordova-plugin-broadcaster",
@@ -20,12 +20,8 @@
2020
],
2121
"engines": {
2222
"cordovaDependencies": {
23-
"2.2.1": {
24-
"cordova": ">3.9.0"
25-
},
26-
"2.3.0": {
27-
"cordova": ">4.0.0"
28-
}
23+
"2.2.1": { "cordova": ">3.9.0" },
24+
"2.3.0": { "cordova": ">4.0.0" }
2925
}
3026
},
3127
"author": "bsorrentino",

plugin.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?xml version="1.0" encoding="UTF-8"?>
22
<plugin id="cordova-plugin-broadcaster"
3-
version="4.3.0"
3+
version="4.3.1"
44
xmlns="http://apache.org/cordova/ns/plugins/1.0"
55
xmlns:android="http://schemas.android.com/apk/res/android">
66
<engines>

src/android/CDVBroadcaster.java

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,13 @@ static class Data {
7676
if (userData.has("extras") && ( hasFlags || userData.has("category") || userData.has("packageName")) ) {
7777

7878
extras = userData.optJSONObject("extras");
79-
flags = ( hasFlags ) ? Optional.ofNullable( userData.optInt("flags") ) : Optional.empty();
79+
if( hasFlags ) {
80+
flags = Optional.ofNullable( userData.optInt("flags") );
81+
}
82+
else {
83+
flags = Optional.empty();
84+
}
85+
8086
category = Optional.ofNullable(userData.optString("category", null));
8187
packageName = Optional.ofNullable( userData.optString("packageName", null));
8288
isAndroidSpecific = true;

0 commit comments

Comments
 (0)