summaryrefslogtreecommitdiffstats
path: root/src
Commit message (Collapse)AuthorAgeFilesLines
* [1/2] Add new method for determining whether to show block optionRichard MacGregor2016-04-141-0/+5
| | | | | | | | | | BlockRequests only work on certain data types. Phone numbers are currently the only type supported. It doesn't make sense to give block action to something that won't get blocked. Ticket CD-461 Change-Id: If3f50f1ee0a4cee2d17fcc33b94eea75099ae561
* Remove scaling option for the Front drawable in CheckableFlipDrawableRohit Yengisetty2016-04-111-19/+5
| | | | | | | | The default option was inadventently set to not scale to the Drawable's bounds. Removing this option altogether as the original feature that needed this is no longer valid. Change-Id: I160a5a4297fb7dc8b8abf7f813ae9646ee2d57fc
* Contacts : fix RTL ViewPager offset on configuration changeErica Chang2016-04-071-3/+15
| | | | | | | | | | | Specifically in RTL, during a screen rotation to landscape, there's a window during init where ViewPagerTabs is not yet attached to a parent. Without a parent, View.getLayoutDirection() cannot resolve layout directions and as a result is unable to restore the previously selected ViewPager tab. CYNGNOS-2281 Change-Id: I25c12efda856b38b9a2a38c0d538eb283edffaa1
* Add origin option to call methods.Stephen Bird2016-03-251-4/+31
| | | | | Ticket: CD-425 Change-Id: Ifd0562a6e59d8b7fd245fbaf27e66fe35332dc86
* Add BlockContactActivityRohit Yengisetty2016-03-251-0/+77
| | | | Change-Id: Ice36988a3773dbc36b1d59cbb45cb607b07885de
* Refactor BlockContactHelper and BlockContactDialogFragmentRohit Yengisetty2016-03-254-272/+270
| | | | | | | | | | | | - remove redundant and duplicated BlockNumberHelper - Enforce BlockContactDialogFragment callback to strictly be an Activity or Fragment. This is to preserve the Callback across Fragment reconstruction (like that during a config change) - Additional callbacks in BlockContactHelper Change-Id: I029e31d51baa14ba13c267242bff12e6153337da
* Tie blocking to blacklist and contact_info providerKamaljeet Maini2016-03-252-0/+193
| | | | | | | | Add BlockNumberHelper.java for blocking numbers. The blocking includes notifying the framework and any call info provider. Issue-Id: DIALER-705 Change-Id: I171460920b7df9311bba2508a04f29ff5e009022
* Fix derp in labeling that breaks messagingStephen Bird2016-03-251-16/+6
| | | | Change-Id: I6da0cbcc469303ea74e7adb61c59d702abb20f8d
* (2/2) T9 cleanupStephen Bird2016-03-253-105/+23
| | | | | | | | | | We can remove the changes we made to ContactListItemView since we are now using the adapter to auto-merge multiple mimetype items. This fixes ripples and let's us clean up quite a bit on the app side of things Ticket: CD-370 CD-339 CD-359 CD-385 CD-384 CD-380 CD-378 CD-372 Change-Id: I929957720cb836bfbe9bf5be187ce8d7df8a1b1c
* Extend LookupProvider APIsRohit Yengisetty2016-03-253-2/+56
| | | | | | | - Adding blockingFetchInfo method to LookupProvider - Adding StatusCode Change-Id: Ifdc8ca04b1493cd3322abb646bfc8fc7b66cf694
* Setup mimetypes for regular searchStephen Bird2016-03-253-0/+30
| | | | Change-Id: I73a1698e62e5a5fa6914e1fa478147ce91668cea
* Add setDrawable to assign a drawable directlyStephen Bird2016-03-251-0/+10
| | | | Change-Id: Ib91d51a8c2218a8dcfabfef93d0533ee9d77a823
* [1/2] Use provider string instead of user nameRichard MacGregor2016-03-252-16/+2
| | | | | | | Use provider string instead of user name for search extra number field Ticket CD-333 Change-Id: I6ae2e716ad03a06478b1e3e773a24456a9b44aa0
* Explicity set extra number to null if one does not existStephen Bird2016-03-251-1/+3
| | | | | Change-Id: I25515c10cef2773ddafd7f5db51bd53dd64719c5 Ticket: CD-334
* Remove ambient related codeStephen Bird2016-03-251-10/+0
| | | | | | This breaks projects that use ContactsCommon that don't have ambient Change-Id: I317139e79c5cb1500aeae9fd13514f448b1da4cf
* T9 searchStephen Bird2016-03-253-4/+138
| | | | | | Add views and methods for displaying incall usernames. Change-Id: I8a1add14734a84a455937b984224422f3b2d75d5
* Setup mime type dataStephen Bird2016-03-252-2/+8
| | | | Change-Id: Ia78bd00108da708aeafb72206619af1d212287fc
* Fix mimetype lookup for incall pluginsStephen Bird2016-03-256-3/+26
| | | | Change-Id: Ib8334a672c626bc33ebbbe8672145f10d0aa51d4
* [2/3] Show incall plugin contacts in favoritesRichard MacGregor2016-03-252-3/+25
| | | | | | | | | Add ability to show contacts with incall callable mimetypes as starred/favorites. Change-Id: Ibe0a31f28e8aad3002b338d2943c829ccd5d7be1 Tickets: CD-58 CD-60 CD-119 (cherry picked from commit 6a0294b2986068cf19a1c31276025fdef0b11352)
* Stability fixes.Erica Chang2016-03-253-6/+39
| | | | | | | | | -Check that mIndexForSelection is >=0 in ViewPagerTabStrip -Contact Loader: parse for a JSONarray if num is -1 -Contacts: fixed TrueCaller mimetype contact card parsing -Contacts: fixed tab sliding offset upon onRestore Change-Id: Idf22af57d039ff19979335a7739d44c31dfaad58
* Add RequestOrigin to LookupRequestRohit Yengisetty2016-03-251-0/+25
| | | | | | | This new field will help identify the origin and reason behind the LookupRequest. Change-Id: Iaf547a50c8113abac3ca9339cc289cda4357d718
* Extend LookupProvider api to add an unique identiferRohit Yengisetty2016-03-251-0/+8
| | | | Change-Id: Id41515ffca11b82aafa9ac3f50ac864ec409ad2b
* Enable support for groups in External contacts accountspulser2016-03-251-0/+5
| | | | | | | | This permits use with DavDroid and other external providers and lets external contacts providers also do groups (as there's nothing otherwise stopping them) Change-Id: I6b8133c03a1a647e52b32007a4891051c2c57999 (cherry picked from commit 0cbd4e195ec22f31c0d4be21e325a1673fa9fa99)
* Expose method to clean up resources in BlockContactHelperRohit Yengisetty2016-02-241-0/+10
| | | | | Change-Id: If19475383e083d0f210ead4015c4a707d0780fba Issue-Id: CYNGNOS-2143
* ContactPhotoManager: Consider BITMAP_UNAVAILABLE as a cache missDiogo Ferreira2016-02-151-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | When a default image is generated, it is cached as an instance of BITMAP_UNAVAILABLE. The code that renders default images interprets null (not present) and null content (invalid byte array) as misses and generates default images. However, it misses the case of previously generated default images. An easy way to repro this is in Sim Contacts: 1) Go to contacts 2) Chose Import from Sim 3) Observe that images are shown correctly 4) Go back, chose import from sim again 5) Observe that images are missing 6) (As a side-effect pressing one will crash the app). This patch considers a cache BITMAP_UNAVAILABLE as a cache miss when generating default images, fixing the problem above. Change-Id: I61050e68b27c605392d0649316ba12a4660a7289 Ticket: CYNGNOS-1829 Ticket: CRACKLING-910 Ticket: KIPPER-590
* Refactor BlockContactHelperRohit Yengisetty2016-01-202-33/+32
| | | | Change-Id: Ic10174bc1a9fb9bf1c68aa2efc25472dd8c656d6
* Add lookupkey for Contact in ContactBuilderRohit Yengisetty2016-01-191-1/+11
| | | | Change-Id: I3271b7c14ef3c61c6f976fcb369c340c1bbaf7bb
* Ensure non-null encoded uri before attempting to parseRohit Yengisetty2016-01-141-0/+4
| | | | Change-Id: Ief4d9b5b305bfcfa18f173ffa0f21b56584a6a2b
* Add block contact dialog and supporting helper classesRohit Yengisetty2016-01-123-0/+306
| | | | Change-Id: I7f2697a843d4f615fe1ae9e8525baaefcbe9428b
* Refactor contact info lookupRohit Yengisetty2016-01-124-0/+254
| | | | Change-Id: Ie926475b31360455b7cdf2d653b58bec9579f736
* Propagate group default and favorites state into GroupMembershipDataItem.Danny Baumann2016-01-101-1/+14
| | | | Change-Id: I80147537e404e551f4a10f1d018cdf6236e73e3c
* Revert "Refactor contact info lookup"Rohit Yengisetty2016-01-084-254/+0
| | | | | | This reverts commit 51aabe650a5f3530e29c66cbf1ac287d1f7f00a9. Change-Id: Ia39ffade0f8939194b373dd0b0e1ec26d25d1160
* Move info_lookup's LookupHandlerThread into src/Rohit Yengisetty2016-01-081-7/+8
| | | | Change-Id: If75beec6979c570fda6e050f232b13ccc855f959
* Add additional SIM constantsRohit Yengisetty2016-01-081-2/+7
| | | | Change-Id: I825d812805bff6eaccf5f2fa0138c95d8546578a
* Refactor contact info lookupRohit Yengisetty2016-01-084-0/+253
| | | | Change-Id: I17c33ddb046437dde3348d7359dcb422f118a478
* ContactsCommon: Improve CAF stringsMichael Bestas2015-12-141-17/+14
| | | | | | * Also remove unused ones Change-Id: Ia8724c749e51028a92544bdf476fbbbfe51e6444
* Populate group title.Danny Baumann2015-12-023-1/+39
| | | | | | Better than showing a mysterious number as item. Change-Id: I1e39e33749bc67dbdadfb6c696b8ad52eb01780f
* Clean-up the DefaultImageProvider APIRohit Yengisetty2015-11-241-32/+25
| | | | Change-Id: I8dd2b45a0ae5457e928c9ba4ae8c14fad88e60d1
* CheckableFlipDrawable : propagate tint and drawable stateRohit Yengisetty2015-11-192-11/+60
| | | | | | | Ensure that the FrontDrawable recieves the tint and the and the drawable state information. Change-Id: I6b4a6e9cc15c5b9d64bbd0b2a4bfe8fbb6bcd7c5
* Fix contact JSON record parsing.Danny Baumann2015-11-181-3/+4
| | | | Change-Id: I6c40ad9636a1be3662261bf8a364b3a52c624598
* ContactsCommon: Move contact uri extra to common locationcretin452015-11-181-0/+2
| | | | | | Dependency for fix that addresses MMS-118 and MMS-127 Change-Id: I017351cf5c100f0bc22e71b12c89b9bb4045fc9f
* ContactsCommon: Don't pass contact id in ContactBuildercretin452015-11-183-6/+20
| | | | | | | | | * Also use structured name as default type. * Add helpers for setting contact image from lookup Addresses MMS-149 Change-Id: I63df3623f7b19d4fca81d52790a62ee6bb24e785
* ContactsCommon: Add ability to show looked up contacts for quick contactsMatt Garnes2015-11-185-72/+812
| | | | | | MMS-86 Change-Id: I7f10857422908106e2d6cba539acfa3b757568f3
* SelectAccountActivity : Support local phone accountRohit Yengisetty2015-11-172-15/+7
| | | | | | | | | | | Selecting the local phone account wasn't doing anything. An issue was reported wherein importing vcf file to local phone account doesn't work. ImportVCardActivity doesn't get the local phone account even though the user selected it in account-selection dialog. [CYNGNOS-399] Change-Id: Ie7534e1046c29b96807735c1caa307acca3de66b
* string validation: check if the string is emptyMarcos Marado2015-11-171-1/+1
| | | | | | | | | | | By replacing a null check with an isEmpty check, we guarantee that the string not only isn't null, but also that it isn't empty. Previously, an empty string could reach here, pass through the validation, and then provoke a StringIndexOutOfBoundsException as we try to access charAt(0). Change-Id: Ibb1dad62d33584956fbb024ced03448df8598b39 Ticket: BUGDUMP-2892952
* ContactsCommon : Add createStarredPhoneOnlyLoaderDanesh M2015-11-171-0/+6
| | | | Change-Id: I6cdd51f5557ca435d189142fe4ee10b27035e963
* ContactPhotoManager - Add ability to fetch contact bitmap based on photo idRohit Yengisetty2015-11-171-5/+31
| | | | Change-Id: Ie9f4ec17ec7f598c8d0005e27107f300af829fc3
* CheckableFlipDrawable : Add getter for front drawableRohit Yengisetty2015-11-171-0/+8
| | | | Change-Id: Id38ecba4b8e4efabebf76e1e4a3167061b8a58be
* Add local phone account as a writable AccountTypes.Matt Garnes2015-11-172-4/+6
| | | | | | | Previously, the local account can be used to create contacts but not groups. Fix this by ensuring that the local account is added as a contact writable account as well as a group writable account. Change-Id: Ia4e0a8abca42d12a708a9e56a181fd3677e56aba
* Store all local contacts in only one account.Matt Garnes2015-11-175-13/+17
| | | | | | | | | | | | | In 1122a58d3e8b4f85ffbc97aecbf76f57b2711065, a second local account was introduced. This is used in many more places than the original phone-local (introduced in 7189fda4cbcd162555d59ee335709173ee46bbea) so change all references to this local account to use the new one. There are several places where exactly one local account is assumed, such as in ContactProvider. We should combine all local contacts into one account name and type. Change-Id: I1781d009557ece05e9eaa078847756c428a8fbbd