Don't reference UNDEMOTE_METHOD
Instead use ContactsContract.undemote(), which accomplishes
the exact same thing.
Manual test: star/unstar a contact. Verify the change persists.
Bug: 18777272
Change-Id: Ia92e06190e891e313bca1d4ae24e7aa5e174b552
diff --git a/src/com/android/contacts/ContactSaveService.java b/src/com/android/contacts/ContactSaveService.java
index 7d355cd..ed5b1ff 100644
--- a/src/com/android/contacts/ContactSaveService.java
+++ b/src/com/android/contacts/ContactSaveService.java
@@ -833,8 +833,7 @@
// Don't bother undemoting if this contact is the user's profile.
if (id < Profile.MIN_ID) {
- getContentResolver().call(ContactsContract.AUTHORITY_URI,
- PinnedPositions.UNDEMOTE_METHOD, String.valueOf(id), null);
+ PinnedPositions.undemote(getContentResolver(), id);
}
}
} finally {