diff options
| author | cretin45 <cretin45@gmail.com> | 2014-11-20 11:16:02 -0800 |
|---|---|---|
| committer | Ed Carrigan <cretin45@gmail.com> | 2014-11-20 22:45:11 +0000 |
| commit | ec2e3107fd61de3c9b488514d2b8fdaa3e0c44e1 (patch) | |
| tree | 94f42c697fc96214c08ca18d60397a9eb3762df2 | |
| parent | 3c094daf934b9048b59978c67c9d65b1f8818933 (diff) | |
| download | packages_apps_ContactsCommon-ec2e3107fd61de3c9b488514d2b8fdaa3e0c44e1.tar.gz packages_apps_ContactsCommon-ec2e3107fd61de3c9b488514d2b8fdaa3e0c44e1.tar.bz2 packages_apps_ContactsCommon-ec2e3107fd61de3c9b488514d2b8fdaa3e0c44e1.zip | |
ContactsCommon: Don't insert contact locally after exporting to sim
Change-Id: Iabe64752c1b7f7e4ccaa385b610aee45324e6ba2
(cherry picked from commit ff88d7582cce36addeb403de8574956af284a18c)
| -rw-r--r-- | src/com/android/contacts/common/MoreContactUtils.java | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/src/com/android/contacts/common/MoreContactUtils.java b/src/com/android/contacts/common/MoreContactUtils.java index f72507a3..99608640 100644 --- a/src/com/android/contacts/common/MoreContactUtils.java +++ b/src/com/android/contacts/common/MoreContactUtils.java @@ -400,13 +400,7 @@ public class MoreContactUtils { SimContactsOperation mSimContactsOperation = new SimContactsOperation(context); result = mSimContactsOperation.insert(mValues, subscription); - if (result != null) { - // we should import the contact to the sim account at the same time. - String[] value = new String[] { - name, number, emails, anrNumber - }; - insertToPhone(value, context.getContentResolver(),subscription); - } else { + if (result == null) { Log.e(TAG, "export contact: [" + name + ", " + number + ", " + emails + "] to slot " + subscription + " failed"); } |
