summaryrefslogtreecommitdiffstats
path: root/src/com/android/dialer/list/SmartDialNumberListAdapter.java
Commit message (Collapse)AuthorAgeFilesLines
* Cleanup logic for showing/hiding shortcuts.Andrew Lee2015-03-191-0/+1
| | | | | | | | | | | + Update SEND_SMS in the regular search list adapter. Before, it was showing up all the time, even when it wasn't supposed to. + Hide CREATE and ADD in the regular search list adapter. + Move disabling of DIRECT_CALL to the smart dial adapter. It's only used by the single fragment right now, so centralizes the enabling of the shortcuts. Bug: 19372539 Change-Id: Iea9108e83f15026d86400a5d1e63d5c011b2770a
* Add shortcut for creating new contact with number.Andrew Lee2015-03-191-0/+1
| | | | | | | | | Add a shortcut in the search fragment for "Create new contact" which opens the compact editor with the entered phone number populated as the main phone number. Bug: 19372539 Change-Id: I9ccb462f399e3fab77c2d8ad536dbd0bd0e23609
* Change add contact shortcut to be for "existing".Andrew Lee2015-03-181-1/+1
| | | | | | | | | | We're going to "fork" the add action into "existing" and "new". This converts the existing shortcut action to the scenario for adding to an existing contact, and the action for adding to a new contact will be added as a follow up. Bug: 19372539 Change-Id: I9e78fa5637a6f0ff22ce1d74bca3fe98e531242f
* Add "Send SMS" shortcut to Dialer.Andrew Lee2015-03-181-0/+1
| | | | | Bug: 19372539 Change-Id: I8135a7e6fb7d5becdafcb0ecfb64d6f6c73aeb88
* Move CallUtil into Dialer. P1/3Brian Attwell2015-02-031-3/+0
| | | | | | | | | | | | | | | CallUtil relies on the a priviliged intent that should only be used by system apps. Therefore, it shouldn't be used by an unbundled Contacts app. I'm leaving one (isVideoEnabled) method from CallUtil inside ContactsCommon. This way, when the changes that Tyler made inside m-wireless-telephony-shamu-dev (b/19062133) get merged back into master both ContactsCommon and Dialer will be updated. Bug: 18777272 Change-Id: I49c9cc714ded01d523ed770a5bf62cf92c378e2f
* Fix IllegalStateException in DialerYorke Lee2014-10-061-2/+6
| | | | | Bug: 17811695 Change-Id: I5dafca3177855940f51ba414b267f59bd13be467
* Pass application context into isVideoEnabled usages.Andrew Lee2014-08-201-1/+1
| | | | | Bug: 16211386 Change-Id: I0bda040bd6cd5c55ee7c708044befaad8977d460
* Moves isVideoEnabled to ContactsCommon (2/3)Paul Soulos2014-08-191-2/+2
| | | | | bug: 16015752 Change-Id: Idaedd70a53b81e375d3a8bf8d9a4fbce1c62cd3f
* Disable VT features in Dialer,Andrew Lee2014-08-111-3/+3
| | | | | | | | | | + Should be contingent on a setting in any case. In teh future this will be derived from capability, but for the moment this feature just won't be supported. + Pointed everything to a false flag in DialerUtils. Bug: 16211386 Change-Id: I37e027c94e3411d8e73a349b3101fdb6ad598b3b
* Add "Make video call" button to search fragments.Andrew Lee2014-07-021-0/+11
| | | | | | | | | | | | | | | | | = Add new "make video call" shortcut type, and "handle" its click in SearchFragment. = Enable "make video call" shortcut for regular and smart dial search fragments. For now, this shortcut does nothing. = Enable "add contact" shortcut for smart dial search fragment. = Changed the bounds of the shortcut items to fill to the edges. = Convert shortcut click handling to use switch/case block. = TODO: Enable/disable the shortcuts depending on whether video calling has been enabled, once the option is available. = TODO: Handle dispatching a video call intent, once that intent extra is provided. Bug: 16013180 Change-Id: I7563d1f2939e27c4b13ed966b73cd4badd9d9fa7
* Reuse SmartDialNameMatcher instance in SmartDialNumberListAdapter.Andrew Lee2014-03-311-3/+4
| | | | Change-Id: I10e4226c5ec5b24ba6ee0d02b88327f0624955c6
* Add call shortcuts to phone number list adaptersYorke Lee2013-09-051-1/+1
| | | | | | | | | | | | | | | | | | | | | | | * 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
* Add GAL support to DialerJay Shrauner2013-08-061-6/+6
| | | | | | | | | Add BIND_DIRECTORY_SEARCH permission to manifest. Use new methods for GAL support. Change SmartDialing cursor and adapter to use PhoneNumberListAdapter projections directly. Bug: Change-Id: I5f8181cfeec7adab4865e680ebc85ba2b476fc39
* Initial commit of all new dialer activities, layouts and stylesYorke Lee2013-07-161-0/+114
As far as possible, this change does not modify any behavior/look of the existing dialer. All modifications to classes/layouts/style attributes that would affect functionality of the old dialer are instead done in separate new files. Added new versions of all activities, fragments, layouts, menus and resources that have been rewritten or modified. The activities do not have intent filters yet in order to not interfere with the existing dialer. Added some new values in colors/styles/dimens for the newly added layouts. Added NewCallLogActivity to separate the CallLogFragment from DialtactsActivity. All call log and voicemail entries are now presented in a separate (New)CallLogActivity. IntentProvider.getCallDetailIntent now takes a cursor instead of an adapter for more flexibility. Add OnListFragmentScrolledListener interface for DialtactsActivity to receive callback when one of its children fragment is scrolled. Added slide in and slide out animations for DialpadFragment. Add slide up and hide animations for search view All menu options now show up in a PopupMenu in NewPhoneFavoriteFragment. Added call log adapter into NewPhoneFavoriteMergedAdapter. Rewrote layout of DialpadFragment to show up as a fragment partially overlaying the screen. Removed some unused code in DialpadFragment (smart dialing, menu handling) Add fragments and adapters for SmartDial. - Update Dialer database to support highlight masking and record contact data Uri, as well as photo uri - Add a fragment and adapter for smart dialing - Add SmartDialCursorLoader to load SmartDial results. - Typing in the dialpad now returns smart dialing results instead of regular search results QuickContactTiles for all sub-adapters of PhoneFavoriteMergedAdapter now use light theme instead of the the default dark theme. Removed all redundant call log filter and contacts to display filter code Moved Dialer specific UI list-related classes to the Dialer package Change-Id: I34885813e4fa79b69e29ac870a87a56d6f08a5e7