cordova-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From purplecabb...@apache.org
Subject [2/5] cordova-plugin-statusbar git commit: fix warning message
Date Wed, 17 Jun 2015 19:56:52 GMT
fix warning message

This change is fix for the following warning message at startup:

W/CordovaPlugin( 6470): Attempted to send a second callback for ID:
StatusBar1091036409
W/CordovaPlugin( 6470): Result was: "Invalid action"


Project: http://git-wip-us.apache.org/repos/asf/cordova-plugin-statusbar/repo
Commit: http://git-wip-us.apache.org/repos/asf/cordova-plugin-statusbar/commit/e8c44810
Tree: http://git-wip-us.apache.org/repos/asf/cordova-plugin-statusbar/tree/e8c44810
Diff: http://git-wip-us.apache.org/repos/asf/cordova-plugin-statusbar/diff/e8c44810

Branch: refs/heads/master
Commit: e8c448100c81847c2fd350b09bc65818a33cb070
Parents: 2b3935a
Author: Peter Bakondy <pbakondy@gmail.com>
Authored: Mon Apr 20 16:39:10 2015 +0200
Committer: Peter Bakondy <pbakondy@gmail.com>
Committed: Mon Apr 20 16:39:10 2015 +0200

----------------------------------------------------------------------
 src/android/StatusBar.java | 1 +
 1 file changed, 1 insertion(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cordova-plugin-statusbar/blob/e8c44810/src/android/StatusBar.java
----------------------------------------------------------------------
diff --git a/src/android/StatusBar.java b/src/android/StatusBar.java
index 4d3b85b..21a6602 100644
--- a/src/android/StatusBar.java
+++ b/src/android/StatusBar.java
@@ -79,6 +79,7 @@ public class StatusBar extends CordovaPlugin {
         if ("_ready".equals(action)) {
             boolean statusBarVisible = (window.getAttributes().flags & WindowManager.LayoutParams.FLAG_FULLSCREEN)
== 0;
             callbackContext.sendPluginResult(new PluginResult(PluginResult.Status.OK, statusBarVisible));
+            return true;
         }
 
         if ("show".equals(action)) {


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cordova.apache.org
For additional commands, e-mail: commits-help@cordova.apache.org


Mime
View raw message