diff options
| author | Fred Quintana <fredq@google.com> | 2010-04-13 14:52:20 -0700 |
|---|---|---|
| committer | Fred Quintana <fredq@google.com> | 2010-04-27 12:19:37 -0700 |
| commit | a31a945ba6ec41f6c5278c44a545e2254f4cd034 (patch) | |
| tree | d8963143f82678f6b789feab097f025567cd8697 /core/java/android/pim | |
| parent | ff121670b7f5f886e12aad5a46e8ad05dc419ca3 (diff) | |
| download | frameworks_base-a31a945ba6ec41f6c5278c44a545e2254f4cd034.zip frameworks_base-a31a945ba6ec41f6c5278c44a545e2254f4cd034.tar.gz frameworks_base-a31a945ba6ec41f6c5278c44a545e2254f4cd034.tar.bz2 | |
move favorites and my contacts group handling to the
provider and sync adapter
Change-Id: I768d7407a42a72b24ece8abb1891d050c8b6760e
Diffstat (limited to 'core/java/android/pim')
| -rw-r--r-- | core/java/android/pim/vcard/VCardEntry.java | 20 |
1 files changed, 0 insertions, 20 deletions
diff --git a/core/java/android/pim/vcard/VCardEntry.java b/core/java/android/pim/vcard/VCardEntry.java index ec03cf4..5b9cf17 100644 --- a/core/java/android/pim/vcard/VCardEntry.java +++ b/core/java/android/pim/vcard/VCardEntry.java @@ -61,9 +61,6 @@ public class VCardEntry { private final static int DEFAULT_ORGANIZATION_TYPE = Organization.TYPE_WORK; - private static final String ACCOUNT_TYPE_GOOGLE = "com.google"; - private static final String GOOGLE_MY_CONTACTS_GROUP = "System Group: My Contacts"; - private static final Map<String, Integer> sImMap = new HashMap<String, Integer>(); static { @@ -1060,23 +1057,6 @@ public class VCardEntry { if (mAccount != null) { builder.withValue(RawContacts.ACCOUNT_NAME, mAccount.name); builder.withValue(RawContacts.ACCOUNT_TYPE, mAccount.type); - - // Assume that caller side creates this group if it does not exist. - if (ACCOUNT_TYPE_GOOGLE.equals(mAccount.type)) { - final Cursor cursor = resolver.query(Groups.CONTENT_URI, new String[] { - Groups.SOURCE_ID }, - Groups.TITLE + "=?", new String[] { - GOOGLE_MY_CONTACTS_GROUP }, null); - try { - if (cursor != null && cursor.moveToFirst()) { - myGroupsId = cursor.getString(0); - } - } finally { - if (cursor != null) { - cursor.close(); - } - } - } } else { builder.withValue(RawContacts.ACCOUNT_NAME, null); builder.withValue(RawContacts.ACCOUNT_TYPE, null); |
