summaryrefslogtreecommitdiff
path: root/src/com/android/dialer/database
AgeCommit message (Collapse)Author
2014-09-11Fix cursor leaksJay Shrauner
Bug:17472228 Change-Id: Ia34252e1a4e0ba0193c8a13006121972e889d27d
2014-02-27Fix Dialer OOM when building smart dialling indexYorke Lee
If a contacts database had contacts comprising an unreasonably large (> more than 50) raw contacts, querying for these lookup keys was likely to cause problems. Bug: 13133579 Change-Id: I26334dfce583eeaa1c7b8db7c03b7f847534de1b
2014-01-09Fix NPE in deleted contact removalJay Shrauner
Fix NPE in deleted contact removal. Bug:12475233 Change-Id: I7f7a2c78e62e838728868063b0f76e6bffba2130
2013-12-11Fix NPE in DialerDatabaseHelper for null phone numbersYorke Lee
Bug: 12006585 Change-Id: Iaed732806cbb8fb0301596162102e81ab8ec6024
2013-11-22Fix Smart dialing testsYorke Lee
Test contacts were being created without unique contact ids and lookup keys, causing them to be mistakenly identified as duplicates. Bug: 10346442 Change-Id: I47fd5bdae83346b6b2f620d7abe49326b1cfd23d
2013-11-18Fix possible NPE in DialerDatabaseHelperYorke Lee
In certain cases (third party contact backup solutions?) it is possible for raw contacts to end up with null display names, which the Dialer was crashing on. This fix performs a null check and inserts the default (No name) contact name if we find that the display name is null. Bug: 11750613 Change-Id: Ifbaf2861534e6eaf8a86d50d584d11a9fa38b65f
2013-09-04Don't wipe subclass helper's tables in our upgrade stepsYorke Lee
Bug: 10618836 Change-Id: I086d082f69b85bfe5789cf4c20dd9f9da30cee87
2013-09-04Fix Dialer crash due to missing database columnsYorke Lee
Upgrade steps were not being run correctly due to a bug in getProperty. Tables should be dropped in onCreate in case onCreate is being called by a subclass. Bug: 10618836 Change-Id: Ia832b9a1859b93d51e9d8fe10feae1585fa93b40
2013-08-26DialerDatabaseHelper related changesYorke Lee
Add properties table to dialer database Database helper access is now performed through a DatabaseHelperManager Bug: 10414852 Change-Id: I2717a94faf1b79370f9307b4ea7d0c39b7a36cb5
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-07-16Initial commit of all new dialer activities, layouts and stylesYorke Lee
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
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