File tree Expand file tree Collapse file tree 3 files changed +11
-9
lines changed Expand file tree Collapse file tree 3 files changed +11
-9
lines changed Original file line number Diff line number Diff line change 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" ,
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" ,
Original file line number Diff line number Diff line change 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 >
Original file line number Diff line number Diff 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 ;
You can’t perform that action at this time.
0 commit comments