mirror of
https://github.com/apache/cordova-android.git
synced 2025-02-08 07:24:04 +08:00
Removing logging messages
This commit is contained in:
parent
6071b9c75a
commit
9671083bed
@ -723,7 +723,7 @@ Accelerometer.prototype.watchAcceleration = function(successCallback, errorCallb
|
|||||||
Accelerometer.prototype.clearWatch = function(id) {
|
Accelerometer.prototype.clearWatch = function(id) {
|
||||||
|
|
||||||
// Stop javascript timer & remove from timer list
|
// 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]);
|
clearInterval(navigator.accelerometer.timers[id]);
|
||||||
delete navigator.accelerometer.timers[id];
|
delete navigator.accelerometer.timers[id];
|
||||||
}
|
}
|
||||||
|
@ -369,12 +369,9 @@ public class ContactAccessorSdk3_4 extends ContactAccessor {
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public boolean remove(String id) {
|
public boolean remove(String id) {
|
||||||
ContentResolver cr = mApp.getContentResolver();
|
int result = mApp.getContentResolver().delete(People.CONTENT_URI,
|
||||||
|
"people._id = ?",
|
||||||
int result = cr.delete(People.CONTENT_URI, "people._id = ?", new String[] {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);
|
|
||||||
|
|
||||||
return (result > 0) ? true : false;
|
return (result > 0) ? true : false;
|
||||||
}
|
}
|
||||||
|
@ -558,14 +558,9 @@ public class ContactAccessorSdk5 extends ContactAccessor {
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public boolean remove(String id) {
|
public boolean remove(String id) {
|
||||||
ContentResolver cr = mApp.getContentResolver();
|
int result = mApp.getContentResolver().delete(ContactsContract.Data.CONTENT_URI,
|
||||||
int result = cr.delete(ContactsContract.Data.CONTENT_URI,
|
|
||||||
ContactsContract.Data.CONTACT_ID + " = ?",
|
ContactsContract.Data.CONTACT_ID + " = ?",
|
||||||
new String[] {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);
|
|
||||||
|
|
||||||
return (result > 0) ? true : false;
|
return (result > 0) ? true : false;
|
||||||
}
|
}
|
||||||
}
|
}
|
Loading…
Reference in New Issue
Block a user