summaryrefslogtreecommitdiffstats
path: root/src/com/android/dialer/interactions
diff options
context:
space:
mode:
authorYorke Lee <yorkelee@google.com>2014-07-30 16:37:21 -0700
committerYorke Lee <yorkelee@google.com>2014-07-30 16:37:21 -0700
commitbb19eb2b9e788310c43a1b0ed976460a41e5345c (patch)
tree698e9b0450e4eb79618fea2964571e4281b425a7 /src/com/android/dialer/interactions
parentc7db678907ef1ae16aec7e963ef4884a272ab48e (diff)
downloadandroid_packages_apps_Dialer-bb19eb2b9e788310c43a1b0ed976460a41e5345c.tar.gz
android_packages_apps_Dialer-bb19eb2b9e788310c43a1b0ed976460a41e5345c.tar.bz2
android_packages_apps_Dialer-bb19eb2b9e788310c43a1b0ed976460a41e5345c.zip
Use new undemote API
Change-Id: I92fdc2cc2e988681bfae9089708e67c8fe649a2f
Diffstat (limited to 'src/com/android/dialer/interactions')
-rw-r--r--src/com/android/dialer/interactions/UndemoteOutgoingCallReceiver.java3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/com/android/dialer/interactions/UndemoteOutgoingCallReceiver.java b/src/com/android/dialer/interactions/UndemoteOutgoingCallReceiver.java
index 2a686c78d..6d74cd0f7 100644
--- a/src/com/android/dialer/interactions/UndemoteOutgoingCallReceiver.java
+++ b/src/com/android/dialer/interactions/UndemoteOutgoingCallReceiver.java
@@ -59,8 +59,7 @@ public class UndemoteOutgoingCallReceiver extends BroadcastReceiver {
// If the contact is not demoted, this will not do anything. Otherwise, it will
// restore it to an unpinned position. If it was a frequently called contact, it will
// show up once again show up on the favorites screen.
- context.getContentResolver().call(ContactsContract.AUTHORITY_URI,
- PinnedPositions.UNDEMOTE_METHOD, String.valueOf(id), null);
+ PinnedPositions.undemote(context.getContentResolver(), id);
}
private long getContactIdFromPhoneNumber(Context context, String number) {