summaryrefslogtreecommitdiff
path: root/src/com/android/dialer
AgeCommit message (Collapse)Author
2013-11-20Merge "Fix ANR in UndemoteOutgoingCallReceiver"Yorke Lee
2013-11-19Fix ANR in UndemoteOutgoingCallReceiverYorke Lee
Querying the contacts provider for the contact id should happen in a new thread as well. Bug: 11773499 Change-Id: I715e7e9b4a650efbd708d4ad3793dad742b74a14
2013-11-20Merge "Switch convertAndStrip to normalizeNumber"Yorke Lee
2013-11-20Merge "Remove private references to isUriNumber and getUsernameFromUriNumber"Yorke Lee
2013-11-20Merge "Rename PhoneNumberHelper in Dialer"Yorke Lee
2013-11-19Switch convertAndStrip to normalizeNumberYorke Lee
normalizeNumber(to be renamed in the future) is a bit stricter about converting the number into a dialable one. Bug: 6948882 Change-Id: I09417822de714beb45664ca4f0916e40013a34bb
2013-11-19Remove private references to isUriNumber and getUsernameFromUriNumberYorke Lee
These methods in PhoneNumberUtils are pretty specific, so don't make them public APIs. Instead, use the methods already in PhoneNumberhelper. Bug: 6948882 Change-Id: I487593543eba526c64588d9a3e70b19b4ed941ab
2013-11-19Merge "Use single instance of PhoneNumberUtilsWrapper"Yorke Lee
2013-11-19Rename PhoneNumberHelper in DialerYorke Lee
Rename PhoneNumberHelper to more appropriate PhoneNumberDisplayHelper Change-Id: I2c03f5cbb04c1e03f1fc1e0051a1cea641160dca
2013-11-19Fix crash when number is nullJay Shrauner
Fix crash in various routines when the number is null. Bug:11766758 Change-Id: I3bcedbd8ada663a8c47528f32e213f653195fe57
2013-11-18am 3ec7f823: am 8b7de609: am 1ae0cf68: Fix possible NPE in DialerDatabaseHelperYorke Lee
* commit '3ec7f823c3ec0eedaf4044bd535411e59bcc820a': Fix possible NPE in DialerDatabaseHelper
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-11-18Use single instance of PhoneNumberUtilsWrapperYorke Lee
PhoneNumberUtilsWrapper is creating a new instance of the class everytime it tries to look up an unknown number. Just use a single instance for this instead to avoid redundant object creation. Change-Id: I418d95ced42c1db06c63848768050a181defb347
2013-11-13am a70f4547: am 43744cc2: am 349f3e1b: Merge "Color/layout tweaks for ↵Yorke Lee
Dialer" into klp-dev * commit 'a70f45478c1ff89a85d29dfda95e6082d67a4816': Color/layout tweaks for Dialer
2013-11-13am b48e4549: am 550e61cf: am 59a39432: Merge "Change all contacts button to ↵Yorke Lee
look like list item" into klp-dev * commit 'b48e45496dd75bb7de73327a5a238dc8e19dc91d': Change all contacts button to look like list item
2013-11-14Merge "Color/layout tweaks for Dialer" into klp-devYorke Lee
2013-11-14Merge "Change all contacts button to look like list item" into klp-devYorke Lee
2013-11-13Color/layout tweaks for DialerYorke Lee
Add search icon into search box Change background of recent cards shortcut to whiter one Whiten the action bar Darken background color of list items Reduce size of searchview text Bug: 11654293 Change-Id: I204b14e752b40563a6f7ebdd1d61f10854b41100
2013-11-13Change all contacts button to look like list itemYorke Lee
Rewrite layout of all contacts button to look like a regular contact list item. Update list default avatar background Bug: 11654293 Bug: 11668831 Change-Id: Iafa8f69e618b39eabf823cafd8153ed24ddbdfbd
2013-11-13am 1cc54f02: am f9d19153: am 759c264e: Merge "Dismiss dialpad when user ↵Chiao Cheng
touches spaces above it." into klp-dev * commit '1cc54f025ca77481f5346042a7eb107111158fc8': Dismiss dialpad when user touches spaces above it.
2013-11-13Merge "Dismiss dialpad when user touches spaces above it." into klp-devChiao Cheng
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-11-12am 86666e28: am 8e578cfe: am c3cb63b6: Merge "Fix possible FragmentManager ↵Yorke Lee
NPE in Dialer" into klp-dev * commit '86666e2852262162f5ba101b9ab054f981777ef1': Fix possible FragmentManager NPE in Dialer
2013-11-12Merge "Fix possible FragmentManager NPE in Dialer" into klp-devYorke Lee
2013-11-08am c51392d7: am a5b38196: am d20f843e: Merge "Treat unknown call types as ↵Yorke Lee
missed calls" into klp-dev * commit 'c51392d773e77376f182781bb2405a5043809fda': Treat unknown call types as missed calls
2013-11-08Merge "Treat unknown call types as missed calls" into klp-devYorke Lee
2013-11-08Treat unknown call types as missed callsYorke Lee
Don't crash on unknown call types. Instead, just treat them as missed calls. Bug: 11586034 Change-Id: I4ca1721e1526ade36237251e7636d161ca8490be
2013-11-08Fix possible FragmentManager NPE in DialerYorke Lee
Bug: 11595442 Change-Id: I7859f61bf8b5eb6b6e14d5f18cf689613124ce6c
2013-11-08am c317b836: am 967e0ed3: am cce501cb: Fix bug where resuming ↵Yorke Lee
CallDetailActivity loses the add contact intent * commit 'c317b8363d2369b4651fc4d88fa8c711f45ab23b': Fix bug where resuming CallDetailActivity loses the add contact intent
2013-11-08Fix bug where resuming CallDetailActivity loses the add contact intentYorke Lee
getLoaderManager.initLoader() performs the onLoadFinish callback immediately if CallDetailActivity is being resumed from a previously paused state. This causes bindContactPhotoAction to be called with a null intent later on causing the add contact button to be no longer clickable. To fix this, if we know that we will receive a loader call back that correctly binds the intent later on (or immediately), we should skip the initial bind. Bug: 11588776 Change-Id: I9407a88ec8bbde303109eb14496e01cf6c347c8f
2013-11-06am 256ff69b: am 05a28a4b: am b7126bf1: Merge "Load contact in ↵Yorke Lee
CallDetailActivity and add it to Add contact intent" into klp-dev * commit '256ff69b81dd538c8ec82a33036ca655fe8ab43c': Load contact in CallDetailActivity and add it to Add contact intent
2013-11-06Merge "Load contact in CallDetailActivity and add it to Add contact intent" ↵Yorke Lee
into klp-dev
2013-11-05Load contact in CallDetailActivity and add it to Add contact intentYorke Lee
Use a ContactLoader to load the contact data stored in the json-encoded URI asynchronously, and prepopulate the add contact intent with the contact data when the contact data is loaded. This fixes the problem of contact details (i.e. name, photo, address) not being pre-populated when adding a contact via a call log entry that was created by calling a contact from nearby places search. Bug: 11294679 Change-Id: I39a0d8ae40e80b350687a43be8ece6b32c88062a
2013-11-01am 6c97009c: am b911519f: am 16016d95: Add null check in ↵Yorke Lee
SmartDialCursorLoader.releaseResources * commit '6c97009c9fe8ea610717afb93ca2fafaff0bc261': Add null check in SmartDialCursorLoader.releaseResources
2013-11-01Add null check in SmartDialCursorLoader.releaseResourcesYorke Lee
Bug: 11474252 Change-Id: Id5a64aa72790bddef9e8fd2d4661635bd2eb6f44
2013-10-25Merge "Remove private references from Dialer"Yorke Lee
2013-10-24Merge "Remove use of applicationScale from ContactsCommon"Yorke Lee
2013-10-24Remove use of applicationScale from ContactsCommonYorke Lee
ApplicationScale is always 1.0 by default if android:anyDensity is not specified in AndroidManifest.xml Change-Id: I74893b9deb6500ed881aa48525a3becaef88480f
2013-10-22am 3a9b3115: am 32443904: am 934d3ee3: Fix call log jankYorke Lee
* commit '3a9b311556e967bd9deab6a258218fe4154867c9': Fix call log jank
2013-10-21Fix call log jankYorke Lee
Restore previous jank-fix while ensuring that contacts with images not in the ContactProvider are still updated Bug: 11289654 Change-Id: I89723bd08c9dc83731b7a7555dc0364c74faa9a4
2013-10-21Remove private references from DialerYorke Lee
Remove MathUtils.constrain Use VisibleForTesting annotation in Guava Use Sets class in Guava Change-Id: Ib46e50ae2c0f278f6f588bb769b89ea37d8c5b30
2013-10-21Use setMargins instead of setMarginsRelativeYorke Lee
setMarginsRelative is a private API and is not needed since margins are equal on all sides Change-Id: I2aeeb336e2c59132224a5b1a69560ca05f76bec2
2013-10-08Merge "Do not use implicit intent to up nav to call log." into klp-devChiao Cheng
2013-10-08Merge "Check for closed cursor to prevent crash." into klp-devChiao Cheng
2013-10-08Do not use implicit intent to up nav to call log.Chiao Cheng
Implemented according to developer docs: http://developer.android.com/training/implementing-navigation/ancestral.html Bug: 11116403 Change-Id: I02dd4900fbda921ddeaaa2a1ac8fa780152dc6ec
2013-10-08Merge "Don't show PII in logs for JSON-encoded uris" into klp-devYorke Lee
2013-10-08Check for closed cursor to prevent crash.Chiao Cheng
No-op if click detected while cursor is closed. Bug: 10937133 Change-Id: I702e30c91a0c76cd36204a4c689155e49b775c1e
2013-10-08Don't show PII in logs for JSON-encoded urisYorke Lee
Bug: 11127944 Change-Id: Id362b5bcd5822779aa070143f5d292da70e85ed1
2013-10-08Make enlarged actionbar invisible when showing dialpadYorke Lee
Bug: 11118584 Change-Id: Ia89c569f9c95912aeeef5c29cf6b6f140e7334dc
2013-10-07Clear phone number cache when call log is clearedYorke Lee
Bug: 11027471 Change-Id: I8437073e1d01e5223e89fce78795d5274db97c8e
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-04Merge "Fix infinite dialpad tones due to rapid presses" into klp-devYorke Lee
2013-10-03Adds tooltip for DialerChristine Chen
Bug: 10916819 Change-Id: Ic18f982a6d478b165f576361cfec6edb8c6eb1c3
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-03Merge "Dynamically change layout params to avoid hiding no favorites view" ↵Yorke Lee
into klp-dev
2013-10-02Merge "Don't allow dialpad presses until it is fully in position" into klp-devYorke Lee
2013-10-02Fixes how voicemail looks up contact namesChristine Chen
Bug: 10966248 Change-Id: I6532e71c3a63104587e5f9bdba59ce2eb3423bb4
2013-10-02Merge "Clicking on dialer directory headers scrolls to selected directory" ↵Yorke Lee
into klp-dev
2013-10-02Don't allow dialpad presses until it is fully in positionYorke Lee
Bug: 11006188 Change-Id: I67861038510591384daf4e2c5da06af3dda5439c
2013-10-02Merge "Filters out legacy unknown numbers." into klp-devChristine Chen
2013-10-02Merge "Turn on reverse lookup by default." into klp-devChiao Cheng
2013-10-02Dynamically change layout params to avoid hiding no favorites viewYorke Lee
Bug: 11029206 Change-Id: I4965515b51592a5bb8808b9654cb246782875c0a
2013-10-01Fix brief flash when making a call from searchYorke Lee
Perform the fragment transaction to hide search in onPause. This prevents the brief flash that shows up in the time between pausing the activity and starting the in-call UI, but also ensures that we execute the transaction before onSaveInstance is called to prevent b/10953115. Bug: 10780429 Change-Id: I85b4c7e6719acede845d604087344401edc9ef3d
2013-10-01Clicking on dialer directory headers scrolls to selected directoryYorke Lee
Enable setScrollToSectionOnHeaderTouch for dialer search Bug: 10991974 Change-Id: If6021ece166ae0cba8bb3a9f1db77c7b3f8a9e5c
2013-10-01Fix crash when dragging a contact to searchboxYorke Lee
Also fix drag handling so that dropping outside the listview will also complete the drag animation. Bug: 11017468 Change-Id: I968cc8463e9d567b0a8c62f851c067d589571c6d
2013-09-30Fix flicker when long pressing to drag and dropYorke Lee
Initial creation of drag shadow now uses the same layout logic as drag hovering so that the shadow does not jump upon first creation. Removed setPressed from onLongClick listener to avoid toggling of pressed state when drag was started. Bug: 10991974 Change-Id: I186cd62060e3a79913aa89fb7af989f3497e0b10
2013-09-30Filters out legacy unknown numbers.Christine Chen
- Adds "-1", "-2", "-3" as unknown number placeholders for legacy reasons. - Disable calling feature for these numbers. - Show caller info as "Unknown" for these numbers. Bug: 10966248 Change-Id: Ibb7904685decbc602db33a56c7709279728e503d
2013-09-30Turn on reverse lookup by default.Chiao Cheng
- Adding new caller id is enabled message when the call short cut is displaying a reverse lookup result or if the number is unknown. - Added dismiss "X" button which turns of the badge forever. - Fixed issue where main screen was cutting off add contact button when few favorites are present. Bug: 10956658 Change-Id: Iea298d41b2ad6c3f63bc5580dc54fa0dc81d8c52
2013-09-30Merge "Add slide up transition when call shortcut is dismissed" into klp-devYorke Lee
2013-09-30Merge "Fix incorrect photouri on call shortcut" into klp-devYorke Lee
2013-09-29Fix incorrect photouri on call shortcutYorke Lee
Bug: 10972458 Change-Id: Ibae824d24f72255f7d2e4c3dfa6f38f001f56f76
2013-09-28Add slide up transition when call shortcut is dismissedYorke Lee
Add animations to the favorites list view that occur when the most recent call shortcut is dismissed. The previous implementation would call removeAllViews on the call shortcut once it had been dismissed. This would cause the rest of the list view to appear to jump up into place instead of animating smoothly. Instead, we now use the same animation logic in PhoneFavoritesFragment by saving the offsets of the rest of the list items once the shortcut is dismissed, and then assigning animations to the new list items when a new dataset arrives in onCallsFetched. Also, additional logic needs to be added to the animation logic because call shortcuts are taller than regular contacts. The previous code made the assumption that the removed item would always be the same height as all other list items, but this is not the case here. We thus save the height of the removed call shortcut as a special value in mItemIdTopMap and retrieve it to correctly calculate translation offsets instead. Bug: 10915363 Change-Id: I81bd711c5a3a34bdb4c4f5a311b91fb6ee1539c0
2013-09-28Change cached info to interfaceJay Shrauner
Change AOSP cache API to interface and move DB data types to GoogleDialer Bug:10980951 Change-Id: I37eb07f672458ab4d8789ecc4e9f2f60745de862
2013-09-28Merge "Fix relayout requests when dragging" into klp-devYorke Lee
2013-09-28Merge "Disable drag and drop if the undo dialog for a favorite is showing" ↵Yorke Lee
into klp-dev
2013-09-27Fix relayout requests when draggingYorke Lee
Also removed unneeded legacy code that shows the keyboard when the search view is focused. The framework does that automatically for us, and this code was causing problems by popping up the keyboard whenever you dragged a contact over the search view. Also turned off debug flag. Bug: 10965693 Change-Id: I2fb9cedecd2a78faa367f750f8a0aea9de68a359
2013-09-27Disable drag and drop if the undo dialog for a favorite is showingYorke Lee
Bug: 10955634 Change-Id: I1a562a03aa7a7de016687803c154b6a3915e3e10
2013-09-27Merge "Refresh call shortcut when returning to the dialer" into klp-devYorke Lee
2013-09-27Revert "Fix brief flash when clicking on a search result to dial"Yorke Lee
This reverts commit 02403e5cd7eb0f1cff85146013e33691e1dc2e8b. Fixes bug: 10953115 Change-Id: Id52e794b6f48ccfeae00d1556cca9ab67378e47a
2013-09-26Refresh call shortcut when returning to the dialerYorke Lee
Bug: 10951409 Change-Id: Ieb39e5f939736be8bc10690f322ef5e43ce81027
2013-09-26Revert no favorite card background changeChristine Chen
Bug: 10862541 Change-Id: I52cbb8b2cfce90c315e42e89935fc7225f8d39fc
2013-09-27Merge "Don't do fragment transactions if fragment is destroyed" into klp-devYorke Lee
2013-09-26Don't do fragment transactions if fragment is destroyedYorke Lee
Bug: 10953115 Change-Id: Idf8107ca9b49b31d2209751a09daabadacfc752b
2013-09-27Merge "Fix for private numbers in call shortcut being dialable" into klp-devYorke Lee
2013-09-26Fix for private numbers in call shortcut being dialableYorke Lee
Call log views were being recycled and reusing the tagged intent in the recycled view. Bug: 10953465 Change-Id: Iff1d2276622bda05486efd092abac1a55b7441f1
2013-09-26Disable swiping for top 3 contactsYorke Lee
Bug: 10946188 Change-Id: Ic0667335d681648448ee044fd35fc29488d5ba7c
2013-09-26Merge "Add no favorite card to the Dialer" into klp-devChristine Chen
2013-09-26Add no favorite card to the DialerChristine Chen
Bug: 10862541 Change-Id: I7299d38dcc63fa2a37e61949ebfcc794c3471c70
2013-09-25Merge "Add drag to open functionality to Dialer overflow menu" into klp-devYorke Lee
2013-09-25Don't call finish when calling from the dialpadYorke Lee
Change-Id: Ib5c98b51c4f3113e434208b83310754b825a197f
2013-09-25Add drag to open functionality to Dialer overflow menuYorke Lee
Bug: 10904260 Change-Id: I18fef2f553ab2598c87972ed887b0221108957f8
2013-09-25Merge "Fix brief flash when clicking on a search result to dial" into klp-devYorke Lee
2013-09-24Fix some padding issues related to the top 3 favoritesYorke Lee
Also fixed a bug that would cause Index OOB exceptions if we were to use anything other than 1 row of tiled favorites. Bug: 10888792 Change-Id: I671032f48fa054847692d28a7c58836bf67c9b29
2013-09-25Merge "Adding missed call badge." into klp-devChiao Cheng
2013-09-24Adding missed call badge.Chiao Cheng
Bug: 10861718 Change-Id: I3a889a71cff7abac578da83d09dd7af23f3f88ca
2013-09-24Fix brief flash when clicking on a search result to dialYorke Lee
Delay the hiding of the search fragment so that the in-call ui has time to show up. Bug: 10780429 Change-Id: I0f44bbb10e221ad4480ed1acf6225e6d6b6411ce
2013-09-24Restore the phone disambiguation dialogYorke Lee
As discussed: 1) If a contact has more than one phone number and no default set, don't show the phone number type. Instead, just center the contact name. 2) Clicking on a contact with more than one phone number and no default will launch the disambiguation dialog. 3) If a contact has a default phone number set or only has one phone number, show the phone number type. 4) Add phone number type to the top 3 contacts, if one is present. Change-Id: I6a60fc6111e8f9494eca5e35d7cfbaf40aa99e57
2013-09-24Merge "Fix clear call log option in overflow menu" into klp-devYorke Lee
2013-09-24Adds star to indicate favorite contactsChristine Chen
- For squared tiles, stars will replace info icons when a contact is a favorite contact. And clicking on either star or info icon will bring up the quick contact card. Bug: 10862067 Change-Id: Ie0ad9e7e5969a70c3bafef5c2bb47fb84cd7ffdb
2013-09-24Merge "Add number type label to favorites list" into klp-devYorke Lee