summaryrefslogtreecommitdiff
path: root/src/com/android/dialer/dialpad/DialpadFragment.java
AgeCommit message (Collapse)Author
2013-11-12Dismiss dialpad when user touches spaces above it.Chiao Cheng
Only applies if the user has not input any digits yet. Bug: 11648799 Change-Id: I28a57fcd7eae0faaf5e234e9ec7531140903e2f5
2013-10-06Fix accessibility issues with dialpadYorke Lee
Each dialpad key needs to manually have the "focusable" flag set so that hovering and lift-to-type works properly. The edittext containing digits needs to receive focus at least once in order for it to report sendAccessibilityEventTypeViewTextChanged type events. In JB-MR2, the ViewPager would automatically give focus to the dialpad fragment when it was swiped into view, but now we have to manually give it focus ourselves when the dialpad fragment is swiped into view. Bug: 11067558 Change-Id: I56a1891b12d5ec7771a37e1f7c361242ebfe028d
2013-10-03Fix infinite dialpad tones due to rapid pressesYorke Lee
Use a set of views, instead of a simple counter to track whether or not tones should still be played. Bug: 10906908 Change-Id: I6bdb08c253f17d9b0aa867b5cbdf4770bc52510b
2013-10-02Don't allow dialpad presses until it is fully in positionYorke Lee
Bug: 11006188 Change-Id: I67861038510591384daf4e2c5da06af3dda5439c
2013-09-25Don't call finish when calling from the dialpadYorke Lee
Change-Id: Ib5c98b51c4f3113e434208b83310754b825a197f
2013-09-06Merge "Tweak Dialpad redlines" into klp-devYorke Lee
2013-09-06Merge "Add call shortcuts to phone number list adapters" into klp-devYorke Lee
2013-09-06Tweak Dialpad redlinesYorke Lee
Centralize dialpad keys Change voicemail icon Bug: 10445734 Bug: 10510368 Change-Id: I1e9dc98c9aed07c26bdfe176f4a4c94c65fc6d85
2013-09-05Fix accessibility issues with dialpadYorke Lee
Bug: 10314426 Change-Id: Ieecb5cc64ce93fb8457ed0cab0d054b5a1b1586c
2013-09-05Add call shortcuts to phone number list adaptersYorke Lee
* 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
2013-08-23Hide dialpad fragment and exit search ui when phone number selectedYorke Lee
Bug: 10328290 Change-Id: I3fc560f0727c493ae5f051320ea6abe4715f0e79
2013-08-12Clean up todos for dialerYorke Lee
* Remove account filter header container * Remove frequent header position * Move dialer database updating to DialtactsActivity Change-Id: I8a6a092f25609537a47ffafb28aa4df9f55b1bd5
2013-08-10Merge "Hide dial button in-call so that in-call chooser dialog shows up" ↵Yorke Lee
into klp-dev
2013-08-09Merge "Make sure to not call getTelephonyManager with null context" into klp-devYorke Lee
2013-08-09Make sure to not call getTelephonyManager with null contextYorke Lee
Bug: 9465444 Change-Id: Ibe7f463da5ba0a5276701fa10ce01c28a5d4b16d
2013-08-09Handle dialpad animations betterYorke Lee
This change prevents the dialpad from animating in when the dialer is launched directly with a dial intent. Change-Id: I6d7378de0484dcdadecbbc0e9c25d4c8ed1e3800
2013-08-09Hide dial button in-call so that in-call chooser dialog shows upYorke Lee
Bug: 10248510 Change-Id: Ib70b6b5eee8f1f16e2a9ea306292e324bfe3474d
2013-08-08Removing and renaming classes from DialerYorke Lee
* No code was changed, just either removed or renamed * Reshuffled a couple of ids around in dialpad_fragment to fix some compile time errors that somehow weren't caught before Change-Id: I9e2381edfb14b0940015deb8cbd94786a1242f43
2013-08-02Initial cleanup of unused old dialer codeYorke Lee
Removed unused classes and renamed NewDialpadFragment to DialpadFragment. Removed some unused static imports Change-Id: If16a8bfe8cc113a570514b6d0edd87cb946758fa
2013-07-31Switch from old dialer to new dialerYorke Lee
Change-Id: I51351f252338eee4d0be5723beafc044786b801e
2013-06-28Add SmartDial database for the Dialer app.Christine Chen
- Creates a database helper to create a smartdial database for the Dialer app. - Queries all rows in the Contact database and copies related columns to the smart dial database. - Create another prefix database to contain all prefixes of a contact. - During keypad input, the prefix databse is queried to find contact suggestions, and suggestions are ranked by the usage data and contact status (starred, primary contact, etc.) - Created unit test for the SmartDial database insertion and prefix computing functions. Change-Id: I4d7c3b3bcc52dd6efa4d6e69d3f1687c3abaeb69
2013-06-11am 1dd46a5c: Fix crash in Dialer in landscape modeYorke Lee
* commit '1dd46a5c676325d20b7a042d0d0d3c7d9365d0bd': Fix crash in Dialer in landscape mode
2013-06-10Fix crash in Dialer in landscape modeYorke Lee
Bug 9369806 Change-Id: I286ebb828c0f6ce7c005c541661b9aa67284847e
2013-06-07Preserves changes in phone number on dialer.Christine Chen
Added check on whether the intent is new to decide when to fill in the number in dialer automatically. If the intent is not new, the dialer will be filled with previously used number, preserving any edits on that number. Bug: 8484457 Change-Id: I45f02d395ce402670b380485b5ba1e7190600ec3
2013-05-31Use TelephonyManager instead of ITelephonyJay Shrauner
Switch to using public TelephonyManager calls (needed for unbundling). Bug: 6948882 Change-Id: I301590efa5c45dfc3d31a16181694941a2bee092
2013-05-23Added SmartDialMap interfaceYorke Lee
All character validation, remap and index calculations in both SmartDialTrie and SmartDialNameMatcher now go through a SmartDialMap. The LatinSmartDialMap is used by default. Bug: 8769026 Change-Id: I4ff90acc380e802f035ca1fbc55c022bf3b76aa3
2013-05-22Smart dialing caching not starting immediatelyYorke Lee
Bug 9086662 Change-Id: Iab8fc869180188930f84edb794e0a24a1a0a2229
2013-05-14Animation for smart dialing suggestionsYorke Lee
Suggestions now appear with a fade in and slide up animation. Suggestions vanish with a fade out and slide down animation. If a suggestion is moved into the middle, it slides to the left/right as appropriate. Change the layout containing suggestions to a LinearLayout, in order to better support animations. Renamed SmartDialAdapter to SmartDialController, and also refactored it to handle entries for a LinearLayout instead of a GridView, as well as adding animation support and view management. Use null object pattern in SmartDialEntry to better handle null entries. Start displaying suggestions on the first digit entered. Bug 8840240 Change-Id: If4e16006c0b36d2244434e0b2d8f3d3b997b0ad2
2013-05-14Fix Dialer NPEYorke Lee
Make sure that smart dialing state is properly set before any digits in the dialpad EditText is populated. Also turn smart dialing off by default even if the system setting hasn't been previously set. Bug 8963485 Change-Id: If556d8b1405cc9e60043774b3aafd5e111e4e7ee
2013-05-13Merge "Setting to toggle smart dialing on/off" into jb-mr2-devYorke Lee
2013-05-08Setting to toggle smart dialing on/offYorke Lee
Bug 8840243 Change-Id: I1d1fea4f958821f3a9273ba189e2140367049516
2013-05-07Allow vanity numbers via paste/DIAL intentYorke Lee
https://googleplex-android-review.googlesource.com/#/c/253417/ Converts vanity numbers such as 1-800-FLOWERS to the numeric equivalents when the number string is populated via a DIAL intent or pasted from the clipboard. Does not remove valid formatting such as dashes, periods, spaces, etc. Bug: 8858358 Change-Id: I553c91628b8fd86ff38a8eeec7823ebdc96bfe6b
2013-04-02Remove smart dialing content observerYorke Lee
The content observer doesn't help to detect changes that happen outside the application (e.g. user modifies a contact in the People app), and seems to be called multiple times while in the dialer for no reason, causing multiple unnecessary recaches. Instead, just force a recache in onResume upon startup to refresh the cache. Bug 8527847 Change-Id: I52f5c435ad573ce8b195d7b7828f19501e068c60
2013-03-19Always show WAIT/PAUSE in dialer overflow menu.Santos Cordon
Used to hide menu items when not applicable. Now we show them always and only perform the action in those cases where menu items were previously visible. Updated code to do zero-position checks when there is no selection...previously missing check. Changed code to use chars instead of Strings when dealing with single digits. Consolidated duplicate code with updateDialString() function. bug: 7478840 Change-Id: I2aa5d3badd40079e9aa75abf7e4051f9dba5e667
2013-02-12Smart Dialling v2 with phone number supportYorke Lee
Behavior: Use a prefix tree to cache contacts instead of an array list Perform matches against phone numbers as well DialpadFragment now ignores results from stale tasks where queries no longer match Add ability to not use default phone number for phone number disambiguation dialog Contacts are now ranked by the order which they were sorted by in the ContactsProvider (affinity) Change remapAccentedChars to always return lowercase characters to avoid overhead of uppercase character conversion Resource/Layout changes: Tweak margins so that the section containing smart dial suggestions looks cleaner Use color resource instead of hardcoding color values Add phone number to SmartDial items ContentObserver: Add a contentobserver to be notified on changes in contacts Refactored cache to allow for forced cache refreshes Use a single instance of SmartDialCache Tests: Added SmartDialTrie tests Comments: Comment cleanup Change-Id: Ica2854e2845d4d75048aa1fd982f139496d21bf3
2013-02-05Don't show old matches if no smartdial matches foundYorke Lee
Change-Id: If851c291273aa5296f1d59edccc83e6d4019be76
2012-12-07Fixing import order.Chiao Cheng
Change-Id: Idcab1877b341b42440e336fa09ba7d631c28c7d0
2012-11-30Cherrypick Arabic/Farsi pasting into dialpad fixYorke Lee
Bug: 6656969 Change-Id: I0bb094125eb9be2b6508e6ca658ae23da9da19d1
2012-11-21Use SmartDialCache object for cachingYorke Lee
Extract caching methods from SmartDialLoaderTask and use a standalone SmartDialCache object instead. This cache object handles caching failures as well as concurrent multiple cache requests. Bug: 6977981 Change-Id: I6df9e273191c7ac434d094e567d7a91814f8c030
2012-11-07Merge "Add smart dialling capabilities to dialer"Yorke Lee
2012-11-07Add smart dialling capabilities to dialerYorke Lee
Layout changes to dialpad fragment to make space for smart dial suggestions. This feature does not appear in landscape mode. SmartDialTextView automatically resizes text to fit within the bounds of the view. SmartDialAdapter highlights certain portions of the matching name based on match positions provided by SmartDialNameMatcher. SmartDialLoaderTask is an AsyncTask that caches all contacts with a phone number into memory, or matches all contact names against a provided query to return a list of matches (maximum of 3). SmartDialNameMatcher contains utility functions to remove accents from accented characters and normalize a phone number. It also contains the matching logic that determines if a contact's display name matches a numeric query. Added some tests for SmartDialNameMatcher Bug: 6977981 Change-Id: I43e1a70d8d0d46e02fc67fe1caaec9a1769124f5
2012-11-07Change dial pad to show chooser onStart instead of onCreate.Chiao Cheng
This fixes the problem where the chooser is not shown when the dialpad is started and pushed to recents before a call comes in. When the call comes and dial pad is selected from recents, the dialpad is shown. Instead, we should be showing the chooser so the user has the option of getting back into the call. Bug: 5761141 Change-Id: I315117c6607dbb71e5359cf98785591d20c21881
2012-10-30Move PhoneNumberFormatter to common.Chiao Cheng
Bug: 6993891 Change-Id: I21b3afb81855ae728b9e20f8af8632c9cd9f4e58
2012-10-30Move StopWatch class into common.Chiao Cheng
Bug: 6993891 Change-Id: I0137ea3a72e0ee1a75f9218fec471049abf36d97
2012-10-23Removing contacts dependencies from CallDetailActivity.Chiao Cheng
Bug: 6993891 Change-Id: I3ef54efc0ff92367ea4f9b68c1629a99d90ff22c
2012-10-15Changing com.android.contacts.R to com.android.dialer.R.Chiao Cheng
Bug: 6993891 Change-Id: I921ec71fffbd4d4a058bab29ded8a6ac62adfb70
2012-09-05Moving resources from Contacts to Dialer.Chiao Cheng
- Also moving some shared utilities. Bug: 6993891 Change-Id: I5fa18d26e4f5423f4d3f3450b8f3e3dacbfb947a
2012-08-30Moving more classes from contacts into dialer.Chiao Cheng
- These classes are only used by dialer code. - Fixed import order. Bug: 6993891 Change-Id: I7941a029989c4793b766fdc77a4666f9f99b750a
2012-08-24Move common phone classes to new location.Chiao Cheng
- removed dependency on com.android.phone.common jar (old package) Bug: 7054788 Change-Id: I8c1f6449534a946f4660a9e8924079c08ff1786c
2012-08-21Initial move of dialer features from contacts app.Chiao Cheng
Bug: 6993891 Change-Id: I758ce359ca7e87a1d184303822979318be171921