commit | a60decef541a9afde41d9723f39bc43fb082d637 | [log] [tgz] |
---|---|---|
author | Marc Blank <mblank@google.com> | Wed Sep 02 15:32:02 2009 -0700 |
committer | Marc Blank <mblank@google.com> | Wed Sep 02 15:32:02 2009 -0700 |
tree | cecfbe9c0ffa510e95c4fda8aa26a24a9e3498ce | |
parent | 449b9344bae979ae848cd24348387f117f4c3bd0 [diff] |
Put in temporary code to prevent contacts upsync based on Gservices setting Change-Id: I89ae0495da9daa85aee7e411cf159fd3c010ee13
diff --git a/src/com/android/exchange/adapter/ContactsSyncAdapter.java b/src/com/android/exchange/adapter/ContactsSyncAdapter.java index 400607a..81b683c 100644 --- a/src/com/android/exchange/adapter/ContactsSyncAdapter.java +++ b/src/com/android/exchange/adapter/ContactsSyncAdapter.java
@@ -1538,6 +1538,11 @@ return false; } + // TODO REMOVE THIS HACK THAT PREVENTS UPLOAD BASED ON GSERVICES SETTING + if (android.provider.Settings.Gservices.getInt(cr, "contacts_v3_upsync_enabled", 0) == 0) { + return false; + } + try { // Get them all atomically EntityIterator ei = cr.queryEntities(uri, RawContacts.DIRTY + "=1", null, null);