From 65652eee27b464e005734fc91ed1aeac8b9d7522 Mon Sep 17 00:00:00 2001 From: Marc Blank Date: Wed, 2 Sep 2009 15:32:02 -0700 Subject: [PATCH] Put in temporary code to prevent contacts upsync based on Gservices setting Change-Id: I89ae0495da9daa85aee7e411cf159fd3c010ee13 --- src/com/android/exchange/adapter/ContactsSyncAdapter.java | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/com/android/exchange/adapter/ContactsSyncAdapter.java b/src/com/android/exchange/adapter/ContactsSyncAdapter.java index 400607a35..81b683c53 100644 --- a/src/com/android/exchange/adapter/ContactsSyncAdapter.java +++ b/src/com/android/exchange/adapter/ContactsSyncAdapter.java @@ -1538,6 +1538,11 @@ public class ContactsSyncAdapter extends AbstractSyncAdapter { 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);