From e142481570d7fbda5d035555fe217314e396ae90 Mon Sep 17 00:00:00 2001 From: Yorke Lee Date: Wed, 4 Sep 2013 18:24:48 -0700 Subject: Add call shortcuts to phone number list adapters * Add a new class DialerPhoneNumberListAdapter, which both RegularSearchListADapter and SmartDialNumberListAdapter extend. DialerPhoneNumberListAdapter allows the addition of pre-defined call shortcuts at the end of the phone number list that can be toggled on or off. * For the SmartDialSearchFragment, the only shortcut that is available is always the Add number to contacts shortcut. * For the RegularSearchFragment, if the user enters a string that contains all dialable numbers, it is treated as a phone number and the call directly and add number to contacts shortcuts are enabled. Otherwise, it is treated as a name, and only the add contact with a new name shortcut is enabled. * Add a intent that allows the user to directly create a new contact that has the name field pre-populated. This intent is used if the user enters input that looks like a name in the search view. Bug: 10339630 Change-Id: I2ae757ce505d85a8780d28d89e09fb7084c773b1 --- res/drawable-hdpi/ic_add_person_dk.png | Bin 0 -> 1533 bytes res/drawable-hdpi/ic_phone_dk.png | Bin 0 -> 1467 bytes res/drawable-hdpi/list_item_avatar_bg.png | Bin 0 -> 614 bytes res/drawable-mdpi/ic_add_person_dk.png | Bin 0 -> 1084 bytes res/drawable-mdpi/ic_phone_dk.png | Bin 0 -> 1061 bytes res/drawable-mdpi/list_item_avatar_bg.png | Bin 0 -> 498 bytes res/drawable-xhdpi/ic_add_person_dk.png | Bin 0 -> 2017 bytes res/drawable-xhdpi/ic_phone_dk.png | Bin 0 -> 1919 bytes res/drawable-xhdpi/list_item_avatar_bg.png | Bin 0 -> 705 bytes res/values/strings.xml | 8 ++++++++ 10 files changed, 8 insertions(+) create mode 100644 res/drawable-hdpi/ic_add_person_dk.png create mode 100644 res/drawable-hdpi/ic_phone_dk.png create mode 100644 res/drawable-hdpi/list_item_avatar_bg.png create mode 100644 res/drawable-mdpi/ic_add_person_dk.png create mode 100644 res/drawable-mdpi/ic_phone_dk.png create mode 100644 res/drawable-mdpi/list_item_avatar_bg.png create mode 100644 res/drawable-xhdpi/ic_add_person_dk.png create mode 100644 res/drawable-xhdpi/ic_phone_dk.png create mode 100644 res/drawable-xhdpi/list_item_avatar_bg.png (limited to 'res') diff --git a/res/drawable-hdpi/ic_add_person_dk.png b/res/drawable-hdpi/ic_add_person_dk.png new file mode 100644 index 000000000..7096ed214 Binary files /dev/null and b/res/drawable-hdpi/ic_add_person_dk.png differ diff --git a/res/drawable-hdpi/ic_phone_dk.png b/res/drawable-hdpi/ic_phone_dk.png new file mode 100644 index 000000000..984d6fa11 Binary files /dev/null and b/res/drawable-hdpi/ic_phone_dk.png differ diff --git a/res/drawable-hdpi/list_item_avatar_bg.png b/res/drawable-hdpi/list_item_avatar_bg.png new file mode 100644 index 000000000..e6eb68e27 Binary files /dev/null and b/res/drawable-hdpi/list_item_avatar_bg.png differ diff --git a/res/drawable-mdpi/ic_add_person_dk.png b/res/drawable-mdpi/ic_add_person_dk.png new file mode 100644 index 000000000..0e0aed02c Binary files /dev/null and b/res/drawable-mdpi/ic_add_person_dk.png differ diff --git a/res/drawable-mdpi/ic_phone_dk.png b/res/drawable-mdpi/ic_phone_dk.png new file mode 100644 index 000000000..c55571a48 Binary files /dev/null and b/res/drawable-mdpi/ic_phone_dk.png differ diff --git a/res/drawable-mdpi/list_item_avatar_bg.png b/res/drawable-mdpi/list_item_avatar_bg.png new file mode 100644 index 000000000..1306cfc03 Binary files /dev/null and b/res/drawable-mdpi/list_item_avatar_bg.png differ diff --git a/res/drawable-xhdpi/ic_add_person_dk.png b/res/drawable-xhdpi/ic_add_person_dk.png new file mode 100644 index 000000000..5211f5c92 Binary files /dev/null and b/res/drawable-xhdpi/ic_add_person_dk.png differ diff --git a/res/drawable-xhdpi/ic_phone_dk.png b/res/drawable-xhdpi/ic_phone_dk.png new file mode 100644 index 000000000..74a7032f7 Binary files /dev/null and b/res/drawable-xhdpi/ic_phone_dk.png differ diff --git a/res/drawable-xhdpi/list_item_avatar_bg.png b/res/drawable-xhdpi/list_item_avatar_bg.png new file mode 100644 index 000000000..3f271a0f6 Binary files /dev/null and b/res/drawable-xhdpi/list_item_avatar_bg.png differ diff --git a/res/values/strings.xml b/res/values/strings.xml index 65746bb04..c6947dd12 100644 --- a/res/values/strings.xml +++ b/res/values/strings.xml @@ -612,4 +612,12 @@ Hidden from favorites Undo + + + Call + %s + + + + Add to contacts -- cgit v1.2.3