From 8006c6cc6dabfb6c84fe51df506bbcf412c8f8fe Mon Sep 17 00:00:00 2001 From: calderwoodra Date: Thu, 19 Apr 2018 12:23:08 -0700 Subject: If the Speed Dial contact only has one channel, place the call immediately. If the disambig dialog would only show one option, just skip the dialog and place the call directly. Don't save the number as a default entry though because the contact could potentially change later (become duo reachable, get another number, ect.) Bug: 36841782 Test: SpeedDialIntegrationTest PiperOrigin-RevId: 193555958 Change-Id: Icbb7e876b7a7c5aaa979980249bf074ec1d7a395 --- java/com/android/dialer/databasepopulator/ContactsPopulator.java | 1 + 1 file changed, 1 insertion(+) (limited to 'java/com/android/dialer/databasepopulator') diff --git a/java/com/android/dialer/databasepopulator/ContactsPopulator.java b/java/com/android/dialer/databasepopulator/ContactsPopulator.java index f22552db7..f21e32512 100644 --- a/java/com/android/dialer/databasepopulator/ContactsPopulator.java +++ b/java/com/android/dialer/databasepopulator/ContactsPopulator.java @@ -152,6 +152,7 @@ public final class ContactsPopulator { Assert.isWorkerThread(); ArrayList operations = new ArrayList<>(); addContact(SIMPLE_CONTACTS[0], operations); + addContact(SIMPLE_CONTACTS[3], operations); addContact(SIMPLE_CONTACTS[5], operations); try { context.getContentResolver().applyBatch(ContactsContract.AUTHORITY, operations); -- cgit v1.2.3