From 1cee6e309ba247d84e5252cc8d626bbf9c73d256 Mon Sep 17 00:00:00 2001 From: Andrew Grieve Date: Mon, 13 Jan 2014 12:07:14 -0500 Subject: [PATCH] Silence excessive logging from scroll events --- framework/src/org/apache/cordova/CordovaActivity.java | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/framework/src/org/apache/cordova/CordovaActivity.java b/framework/src/org/apache/cordova/CordovaActivity.java index a8ea6b67..9f8b020c 100755 --- a/framework/src/org/apache/cordova/CordovaActivity.java +++ b/framework/src/org/apache/cordova/CordovaActivity.java @@ -1131,7 +1131,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(); @@ -1178,4 +1181,3 @@ public class CordovaActivity extends Activity implements CordovaInterface { } } } -