Follow new PinnedPositions API changes (2/2)
Bug: 15593967
Change-Id: Ie78300e15e4289323be8324daf3f9cfa8056915d
diff --git a/src/com/android/contacts/ContactSaveService.java b/src/com/android/contacts/ContactSaveService.java
index 8688a47..cc687ec 100644
--- a/src/com/android/contacts/ContactSaveService.java
+++ b/src/com/android/contacts/ContactSaveService.java
@@ -829,9 +829,8 @@
// Don't bother undemoting if this contact is the user's profile.
if (id < Profile.MIN_ID) {
- values.clear();
- values.put(String.valueOf(id), PinnedPositions.UNDEMOTE);
- getContentResolver().update(PinnedPositions.UPDATE_URI, values, null, null);
+ getContentResolver().call(ContactsContract.AUTHORITY_URI,
+ PinnedPositions.UNDEMOTE_METHOD, String.valueOf(id), null);
}
}
} finally {