From 9671083bedcdbeb246590a2946bbac813592bc97 Mon Sep 17 00:00:00 2001 From: macdonst Date: Fri, 1 Oct 2010 11:28:31 +0800 Subject: [PATCH] Removing logging messages --- framework/assets/www/phonegap.js | 2 +- framework/src/com/phonegap/ContactAccessorSdk3_4.java | 9 +++------ framework/src/com/phonegap/ContactAccessorSdk5.java | 9 ++------- 3 files changed, 6 insertions(+), 14 deletions(-) diff --git a/framework/assets/www/phonegap.js b/framework/assets/www/phonegap.js index 9b3f3955..20eba86f 100644 --- a/framework/assets/www/phonegap.js +++ b/framework/assets/www/phonegap.js @@ -723,7 +723,7 @@ Accelerometer.prototype.watchAcceleration = function(successCallback, errorCallb Accelerometer.prototype.clearWatch = function(id) { // Stop javascript timer & remove from timer list - if (id && navigator.accelerometer.timers[id]) { + if (id && navigator.accelerometer.timers[id] != undefined) { clearInterval(navigator.accelerometer.timers[id]); delete navigator.accelerometer.timers[id]; } diff --git a/framework/src/com/phonegap/ContactAccessorSdk3_4.java b/framework/src/com/phonegap/ContactAccessorSdk3_4.java index ce608db9..7e43ec2a 100644 --- a/framework/src/com/phonegap/ContactAccessorSdk3_4.java +++ b/framework/src/com/phonegap/ContactAccessorSdk3_4.java @@ -369,12 +369,9 @@ public class ContactAccessorSdk3_4 extends ContactAccessor { @Override public boolean remove(String id) { - ContentResolver cr = mApp.getContentResolver(); - - int result = cr.delete(People.CONTENT_URI, "people._id = ?", new String[] {id}); - Log.d(LOG_TAG, "Content URI = " + People.CONTENT_URI); - Log.d(LOG_TAG, "Where = " + "people._id = ?"); - Log.d(LOG_TAG, "Number of rows deleted = " + result); + int result = mApp.getContentResolver().delete(People.CONTENT_URI, + "people._id = ?", + new String[] {id}); return (result > 0) ? true : false; } diff --git a/framework/src/com/phonegap/ContactAccessorSdk5.java b/framework/src/com/phonegap/ContactAccessorSdk5.java index 84117569..a99a6d7e 100644 --- a/framework/src/com/phonegap/ContactAccessorSdk5.java +++ b/framework/src/com/phonegap/ContactAccessorSdk5.java @@ -558,14 +558,9 @@ public class ContactAccessorSdk5 extends ContactAccessor { @Override public boolean remove(String id) { - ContentResolver cr = mApp.getContentResolver(); - int result = cr.delete(ContactsContract.Data.CONTENT_URI, + int result = mApp.getContentResolver().delete(ContactsContract.Data.CONTENT_URI, ContactsContract.Data.CONTACT_ID + " = ?", - new String[] {id}); - Log.d(LOG_TAG, "Content URI = " + ContactsContract.Data.CONTENT_URI); - Log.d(LOG_TAG, "Where = " + ContactsContract.Data.CONTACT_ID + " = ?"); - Log.d(LOG_TAG, "Number of rows deleted = " + result); - + new String[] {id}); return (result > 0) ? true : false; } } \ No newline at end of file