summaryrefslogtreecommitdiff
path: root/java/com/android/dialer/speeddial/loader
AgeCommit message (Collapse)Author
2018-06-27Request high resolution photo to be downloaded by the sync adapter when a ↵twyen
contact is added to the favorites. To conserve resources synced contacts only have the low-res icon by default, and the hi-res photo is only synced when the contact is viewed. When a contact is "viewed" in dialer, dialer should send a ACTION_VIEW with the contact URI to the sync adapter service. TEST=TAP Test: TAP PiperOrigin-RevId: 202373390 Change-Id: Ie3a173b7c3f442dc806a719910aea9b3a6c5cf4f
2018-06-27Fix SpeedDialUiItem.getDefaultVoiceChannelyueg
Test: SpeedDialUiItemTest PiperOrigin-RevId: 202228252 Change-Id: I72047d599a58a7932942fa8988d38e623fc2aeab
2018-06-26Refactor ContactPreferencetwyen
Moving it outside contacts.commons reduces dependency to legacy code. Also removed redundant implementations such as caching SharedPreferences (it is already cached), custom ListPreferences (standard ListPreferences already have what we want), and corrected preference storage location (allow standard ListPreferences to work) TEST=TAP Test: TAP PiperOrigin-RevId: 202000393 Change-Id: I45374e610b3510784b5a4da92e5d8462cbfc92bb
2018-06-26Remove suggestion from NUI favoriteyueg
Test: manual PiperOrigin-RevId: 201745094 Change-Id: I7ba7b0d8063f056f0c5edb44c7649a1c807f6549
2018-05-17Fixed various speed dial issues.calderwoodra
X. Pinned contacts are now saved onPause 4. Large display size no longer crops images 14. If ViLTE is disabled, IMS_VIDEO channels won't be added. Bug: 78491298,79876391,79876661 Test: manual PiperOrigin-RevId: 197068627 Change-Id: I642a11d684c648b7f6579792313b09eabb09a9fa
2018-05-15Don't add identical numbers in the cursor to the SpeedDialUiItem.calderwoodra
Bug: 78492722,79213974 Test: SpeedDialUiItemTest PiperOrigin-RevId: 196754044 Change-Id: I7aec281ea7904087de0363245974cb08aec54c73
2018-05-04Merge changes I481fbbc7,I57e48b5d,Ieb52489b,I2763ddd9android-build-prod (mdb)
* changes: Translation tweaks. Migrated context menu to be a PopupMenu instead. Add column for call mapping id to AnnotatedCallLog database. Don't force open keyboard when RTT is active.
2018-05-04Migrated context menu to be a PopupMenu instead.calderwoodra
This gives us huge amounts of functionality with very little technical cost but some trade off in UX. Bug: 77761183,78492250 Test: existing PiperOrigin-RevId: 195133774 Change-Id: I57e48b5defc4ae1c7bfbed13e3fbc16ebd607944
2018-05-04Fixed labels for speed dial UI.calderwoodra
Bug: 78922118 Test: tap + manual PiperOrigin-RevId: 194971448 Change-Id: I906250cb83c17198fac87f5ad6d3014cc8a34db2
2018-05-02Fixed speed dial remove.calderwoodra
App would crash when users attempted to remove a starred contact because we try to update Phone.CONTENT_URI, which is not allowed. Test assumed that we could update PHone.CONTENT_URI, which is why this wasn't caught. Updated the test to verify the contact in Contacts.CONTENT_URI get updated to starred = 0. Unforunately, since fakeContentProvider doesn't work exactly like cp2, the update won't propogate to Phone.CONTENT_URI, so out test is less than ideal, but it should cover our bases. Also updated the image and text for starring a suggestion. Bug: 78923466 Test: tap PiperOrigin-RevId: 194962080 Change-Id: I9f8f71d70ba83510682890917081380a3c51cd7a
2018-04-28Updated logic on showing voice/video/sms options in favorites menus.calderwoodra
Bug: 78492066 Test: numerous PiperOrigin-RevId: 194635336 Change-Id: I7be0efad4dc9e11beceb02c9b2f4c719d29dbbd1
2018-04-28Implemented remove starred contact from speed dial fragment.calderwoodra
This is triggered by long pressing a SpeedDialUiItem and selecting remove in the resulting menu. This will remove it's assocaited entry from the SpeedDialEntry database and if the contact associated with the SpeedDialUiItem being removed only has one speed dial entry, additionally we will unstar the contact as well. Bug: 77761023 Test: WIP PiperOrigin-RevId: 194606709 Change-Id: I4d6fb104a388c39c77796f7626cd63e991303a51
2018-04-26Build out the bottom sheet for suggested contacts in Speed Dial.calderwoodra
The bottom sheet should include: - contact row - voice call - video call - sms - divider - add favorite (follow up) - remove (follow up) - contact info Bug: 77761183 Test: WIP PiperOrigin-RevId: 194440839 Change-Id: I78e0e0fc0a4834338a59b458fe7639786de57877
2018-04-25Persist contacts pinned positions in speed dial.calderwoodra
Bug: 78491298 Test: WIP PiperOrigin-RevId: 194323952 Change-Id: I6883ce1506684c93cb5538ebbc0e14aecc300a00
2018-04-25Newly starred SpeedDialUiItems now have SpeedDialEntry ids set.calderwoodra
Bug: 78241895 Test: numerous PiperOrigin-RevId: 194147693 Change-Id: I9e9947ad689c5bf24dd52e37787f4138a92f5238
2018-04-23SpeedDialEntries with default numbers now properly show up.calderwoodra
This change includes: - fixing an issue where default numbers were being removed when inserting duo channels. - setting a max height on the disambig dialog scrollview because it was causing accessibility issues (and will be needed later). Test: SpeedDialIntegrationTest, SpeedDialUiItemLoaderTest PiperOrigin-RevId: 194023169 Change-Id: I4896fb5dbbb99aefd9713c6768ea9c07ca906d6d
2018-04-23Implement display name ordering in Speed Dial fragment.calderwoodra
Bug: 77724765 Test: manual PiperOrigin-RevId: 194001119 Change-Id: I6bef1f746e39c36df5daf5938c774041b0f0f47e
2018-04-23Implemented context menu actions.calderwoodra
Actions implemented in this CL: - placing a voice call - placing a video call - opening an sms conversation - opening a contact card Remove action will be implemented in a follow up CL. Made a few adjustments to the context menu UI. Bug: 77761023 Test: ContextMenuTest PiperOrigin-RevId: 193994428 Change-Id: I85b328f5820175ff91514c0057267b85649b0755
2018-04-19Implement remember this choice in SpeedDialEntry database.calderwoodra
In order to connect SpeedDialUiItems to the correct SpeedDialEntry in the database, we need to pipe the entry ID throgh to the UI item. So this change includes the logic to pipe the id as well. Bug: 36841782,77760800 Test: DisambigDialogTest PiperOrigin-RevId: 193550938 Change-Id: I6ec64d0aec7f85d36555707a54953bfdff938bb5
2018-04-18Implement adding favorites.calderwoodra
This change deletes the AddFavoritesActivity in favor of the activity provided to us by the Intent.ACTION_PICK intent. Bug: 36841782 Test: SpeedDialUiItemLoaderTest PiperOrigin-RevId: 193439522 Change-Id: Ie297abd2307c727d746f26ba99961de116636dc4
2018-04-18Added duo channels to favorite contacts and duo suggestions.calderwoodra
Bug: 36841782,77724710,77760800 Test: SpeedDialUiItemLoaderTest PiperOrigin-RevId: 193432314 Change-Id: If9e0aa05b1aeb266960281ac13218091882ff4c3
2018-04-17Migrate SpeedDialUiLoader to use contact lookup URIs.calderwoodra
The changes in this CL improve the loader in the follow ways: - Speed: by reducing the number of queries - Long term accuracy: by using lookup URIs This change also adds ViLTE presence and contact labels to the results returned by the Loader. Bug: 36841782,77724710,77725860 Test: SpeedDialUiLoaderTest PiperOrigin-RevId: 193235046 Change-Id: If5e6aa821c8bad88dc77af81827abbd8e0f1b28e
2018-04-11Added context menu for favorite contacts in new speed dial.calderwoodra
Bug: 36841782,77761023 Test: WIP PiperOrigin-RevId: 192556602 Change-Id: I50c0baef7ef6c8ae533545567ec797283a9a870f
2018-04-10Wire up SpeedDial fragment with SpeedDialUiItemLoader.calderwoodra
This change is mostly just a migration from a cursor loader and cursor to a listenable future and list of POJOs. Bug: 36841782 Test: tap PiperOrigin-RevId: 192349724 Change-Id: I37140dcc2e5e03bc5745573c0d777e18c4f1a880