cordova-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From na...@apache.org
Subject [06/33] git commit: Silence excessive logging from scroll events
Date Mon, 03 Feb 2014 18:37:19 GMT
Silence excessive logging from scroll events


Project: http://git-wip-us.apache.org/repos/asf/cordova-amazon-fireos/repo
Commit: http://git-wip-us.apache.org/repos/asf/cordova-amazon-fireos/commit/78dc38e1
Tree: http://git-wip-us.apache.org/repos/asf/cordova-amazon-fireos/tree/78dc38e1
Diff: http://git-wip-us.apache.org/repos/asf/cordova-amazon-fireos/diff/78dc38e1

Branch: refs/heads/master
Commit: 78dc38e1d54d1ae603d17f4b8e9932d575e012c7
Parents: 64d8428
Author: Andrew Grieve <agrieve@chromium.org>
Authored: Mon Jan 13 12:07:14 2014 -0500
Committer: Archana Naik <naika@lab126.com>
Committed: Fri Jan 31 14:53:12 2014 -0800

----------------------------------------------------------------------
 framework/src/org/apache/cordova/CordovaActivity.java | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cordova-amazon-fireos/blob/78dc38e1/framework/src/org/apache/cordova/CordovaActivity.java
----------------------------------------------------------------------
diff --git a/framework/src/org/apache/cordova/CordovaActivity.java b/framework/src/org/apache/cordova/CordovaActivity.java
index 28c51e2..6368b0d 100755
--- a/framework/src/org/apache/cordova/CordovaActivity.java
+++ b/framework/src/org/apache/cordova/CordovaActivity.java
@@ -1199,7 +1199,10 @@ public class CordovaActivity extends Activity implements CordovaInterface
{
      * @return              Object or null
      */
     public Object onMessage(String id, Object data) {
-        LOG.d(TAG, "onMessage(" + id + "," + data + ")");
+        if (!"onScrollChanged".equals(id)) {
+            LOG.d(TAG, "onMessage(" + id + "," + data + ")");
+        }
+
         if ("splashscreen".equals(id)) {
             if ("hide".equals(data.toString())) {
                 this.removeSplashScreen();


Mime
View raw message