diff options
author | Yorke Lee <yorkelee@google.com> | 2013-09-04 18:24:48 -0700 |
---|---|---|
committer | Yorke Lee <yorkelee@google.com> | 2013-09-05 12:00:30 -0700 |
commit | e142481570d7fbda5d035555fe217314e396ae90 (patch) | |
tree | 3a8217bc8f657c77d177620693862afdd4ff637d /src/com/android/dialer/list/SmartDialNumberListAdapter.java | |
parent | 55d46030f7e08c60eb0f8d4d271db1a1329572dc (diff) |
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
Diffstat (limited to 'src/com/android/dialer/list/SmartDialNumberListAdapter.java')
-rw-r--r-- | src/com/android/dialer/list/SmartDialNumberListAdapter.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/com/android/dialer/list/SmartDialNumberListAdapter.java b/src/com/android/dialer/list/SmartDialNumberListAdapter.java index c5ce59af2..962d8ee43 100644 --- a/src/com/android/dialer/list/SmartDialNumberListAdapter.java +++ b/src/com/android/dialer/list/SmartDialNumberListAdapter.java @@ -37,7 +37,7 @@ import java.util.ArrayList; /** * List adapter to display the SmartDial search results. */ -public class SmartDialNumberListAdapter extends PhoneNumberListAdapter{ +public class SmartDialNumberListAdapter extends DialerPhoneNumberListAdapter { private static final String TAG = SmartDialNumberListAdapter.class.getSimpleName(); private static final boolean DEBUG = false; |