summaryrefslogtreecommitdiff
path: root/src/com/android/dialer/calllog/CallLogFragment.java
AgeCommit message (Collapse)Author
2017-03-01Update dialer sources.Eric Erfanian
Test: Built package and system image. This change clobbers the old source, and is an export from an internal Google repository. The internal repository was forked form Android in March, and this change includes modifications since then, to near the v8 release. Since the fork, we've moved code from monolithic to independent modules. In addition, we've switched to Blaze/Bazel as the build sysetm. This export, however, still uses make. New dependencies have been added: - Dagger - Auto-Value - Glide - Libshortcutbadger Going forward, development will still be in Google3, and the Gerrit release will become an automated export, with the next drop happening in ~ two weeks. Android.mk includes local modifications from ToT. Abridged changelog: Bug fixes ● Not able to mute, add a call when using Phone app in multiwindow mode ● Double tap on keypad triggering multiple key and tones ● Reported spam numbers not showing as spam in the call log ● Crash when user tries to block number while Phone app is not set as default ● Crash when user picks a number from search auto-complete list Visual Voicemail (VVM) improvements ● Share Voicemail audio via standard exporting mechanisms that support file attachment (email, MMS, etc.) ● Make phone number, email and web sites in VVM transcript clickable ● Set PIN before declining VVM Terms of Service {Carrier} ● Set client type for outbound visual voicemail SMS {Carrier} New incoming call and incall UI on older devices (Android M) ● Updated Phone app icon ● New incall UI (large buttons, button labels) ● New and animated Answer/Reject gestures Accessibility ● Add custom answer/decline call buttons on answer screen for touch exploration accessibility services ● Increase size of touch target ● Add verbal feedback when a Voicemail fails to load ● Fix pressing of Phone buttons while in a phone call using Switch Access ● Fix selecting and opening contacts in talkback mode ● Split focus for ‘Learn More’ link in caller id & spam to help distinguish similar text Other ● Backup & Restore for App Preferences ● Prompt user to enable Wi-Fi calling if the call ends due to out of service and Wi-Fi is connected ● Rename “Dialpad” to “Keypad” ● Show "Private number" for restricted calls ● Delete unused items (vcard, add contact, call history) from Phone menu Change-Id: I2a7e53532a24c21bf308bf0a6d178d7ddbca4958
2016-03-30Fix merge.Sarmad Hashmi
+Remove line that was removed by ag/874074 and added back in by ag/886674. Change-Id: I8f501655356ccf5ff605a0eb705ec38e1ded9025
2016-03-17Prevent incorrect call log item from expanding when new item arrives am: fa15094Ta-wei Yen
am: ad39eb2 * commit 'ad39eb2ab71faf5c1750595e4fd8adcf898113f1': Prevent incorrect call log item from expanding when new item arrives
2016-03-16Prevent incorrect call log item from expanding when new item arrivesTa-wei Yen
mCurrentlyExpandedPosition is unreliable when the list is changing, use mCurrentlyExpandedRowId to determine which item is expanded instead. Positions stored in CallLogAdaptor are also invalidated when the list is changing. Bug:25283769 Change-Id: Iffca8c7d65933cfcdd12f2f3cc85170226db1c4a
2016-03-15Fixing buildSarmad Hashmi
+ A merge was performed improperly which caused an import to be removed, but the code using the imported object wasn't. This resulted in build failures since the necessary class wasn't imported. + This change properly performs the merge of cdc14da9275c67d123b55e668f48f73c4b58d948. Change-Id: Ifb78cc75aff18a9c632c7c5e1a3121858383296a
2016-03-04Update call log adapter and related files for archived voicemails.Sarmad Hashmi
+ Populate CallLogAdapter items with different data depending on whether it is in the voicemail archive activity or not + Added addVoicemailGroups method to CallLogGroupBuilder so that every voicemail is put into an individual group + Voicemails grouped differently than regular calls, so added changeCursorVoicemail in GroupingListAdapter +Fix CallLogAdapter tests and add test for archive adapter BUG=22797391 Change-Id: Ib8387c5b3ab8c5e39876cfaf20fde5a44295f152
2016-02-24Mark missed calls as read on swipe.Sarmad Hashmi
When swiping to a new tab, if the previous tab that the user was in was the call history tab, all missed calls are marked as read and the tab count is updated. Also fixes b/27153608 and clearing of missed calls on orientation change. BUG=27136093 BUG=27153608 BUG=27154514 Change-Id: I5be31b1a3978784b941fb8e1af22f93fb6ca944a
2016-02-24[DO NOT MERGE] Display missed call count for call log.Sarmad Hashmi
The number of unread missed calls are displayed beside the Call Log as a badge. All unread missed calls are bolded under the call log tab. When exiting the call log tab, all unread calls are marked as read. When interacting with an unread missed call card while in the call log tab, it will subtract 1 from the badge. Cherry-picked from d118a8e0d8a68499398504f350f81175118e2ecf BUG=24953555 Change-Id: If91a3bc89197465934cb773955e4bec005d6d14e
2016-02-01Refactor VVM specific code from CallLogFragmentTa-wei Yen
Moved visual voicemail code from CallLogFragment to VisualVoicemailCallLogFragment. Expected to have a lot of VVM specific code in the fragment, so it's better to separate them. Change-Id: I0fcad51d08f1a174a42f940fd455ce885d76c4ae
2015-11-18Handle backwards compatible permission lookup and requests (1/3).Nancy Chen
requestPermissions is not available to the Fragments class and checkSelfPermission is not available to the Context class in API < 23. Use other backwards compatible methods to implement the behavior. Bug: 25776171 Change-Id: I6cb221236f28b319f618d2cf32a9f503a6f4e6e0
2015-11-11Refresh unread count when voicemail data changes.Nancy Chen
When a new voicemail comes in, kick off an update to the unread count. Bug: 25293846 Change-Id: Id1de18d8a7e1772bf179a385df10c5a903c26fee
2015-10-30Always hide blocked calls.Andrew Lee
- Remove setting for show/hide. - Remove utilities and behaviors for show/hide. ~ Continue filtering blocked call types in call log (which may be marked by other applications.) ~ Change behavior after blocking call; instead of keeping the call log entry but changing the type to BLOCKED, delete it instead. + Default behavior is now to delete entries and visual voicemails of blocked calls. Bug: 25378068 Bug: 25106387 Change-Id: I8cbc419b25cce6ba39099857cffe4eb1df9d0bef
2015-10-26Call log respects display name order preferencesBrandon Maxwell
- Updated ContactInfoHelper to retrieve DISPLAY_NAME_ALTERNATIVE (name in last name first order) - Stored alternative name in ContactInfo object - Updated CallLogAdapter to choose between first name first and last name first when showing contact name - Added tests for ContactInfoHelper.lookupContactFromUri (changed to public method) - Fixed bug with ContactsPreferences so ChangeListener works Bug:19364093 Change-Id: I73e8d8602a54e3134ef01b3d5167d828b26fa5ea
2015-10-23Revert "Call log respects display name order preferences"Brandon Maxwell
This reverts commit 327fb5bb609a6bee44a62888d671c951b19782fd. Change-Id: I134f0a26697bec20b746a6e8f041a715d8e95136
2015-10-23Call log respects display name order preferencesBrandon Maxwell
- Updated ContactInfoHelper to retrieve DISPLAY_NAME_ALTERNATIVE (name in last name first order) - Stored alternative name in ContactInfo object - Updated CallLogAdapter to choose between first name first and last name first when showing contact name - Added tests for ContactInfoHelper.lookupContactFromUri (changed to public method) - Fixed bug with ContactsPreferences so ChangeListener works Bug:19364093 Change-Id: I188d8fc2eccb87edbe56625c9a7537b3d5f0e19e
2015-10-20Add setting for hiding blocked calls.Andrew Lee
+ Add settings switch to blocked number settings. + Add utility for checking/setting whether calls should be blocked. + Filter out blocked calls in call log query, if appropriate. + Refresh call log fragment after a change in setting. Followup work: delete voicemails for calls by blocked numbers after the time when the user blocked them. Bug: 24134270 Change-Id: I85088697559ef6fb446b82617f14f1c6fa893df1
2015-10-14Moving call type/location for voicemailBrandon Maxwell
Combination of two related bugs. 22168682: In the voicemail call log, moved call type/location to below the call action button and removed the call details button as it didn't have any additional information. 22514722: Modified spacing and text sizes for call log. Moved voicemail transcription below call date as in mocks. Bug:22168682,22514722 Change-Id: I557761b815604fee4e6b61f4670608b8fa90d3a7
2015-09-17Handle wired headset during voicemail playback.Nancy Chen
- Switch to wired headset when plugged in even if playing on speaker - Remember if wired headset overrode speaker so it can be turned back on when the headset is unplugged. - Ensure proximity sensor is turned on iff the earpiece is the audio source. Bug: 23816959 Change-Id: I952c24ee51139f21a17344acd7698c9ed8f52860
2015-09-15Update "X mins ago" on each minute change.Santos Cordon
Reschedule an update when the next minute on the system clock changes. Bug: 2384475 Change-Id: Iead4ba7b0bf234f9e4c209a4e9c5b4f30efe4aa7
2015-09-01Display unread count for voicemail and update when vm is read.Nancy Chen
Query for number of unread voicemails when dialer starts and update this number when the user reads the voicemails. Pass the tab icons into the ViewPagerTabs class: changed so that the raw image is passed instead of the modified drawable because the ripple is applied in through the ViewPagerTabs layout instead of through the drawable containing the icons. Bug: 21086059 Change-Id: Ie426b042d72926ea3feb7baa4717108776152754
2015-08-24Merge "Only dismiss voicemail notifications when navigating to voicemail tab."Nancy Chen
2015-08-20Only dismiss voicemail notifications when navigating to voicemail tab.Nancy Chen
Bug: 22741728 Change-Id: I890f447bf580df44344fa7cb0cdfc35583f22e06
2015-08-19Show snackbar to undo last deleted voicemail.Nancy Chen
Snackbar will appear for 3 seconds during which the user can undo the last deletion. The way it works is the snackbar appears for 3 seconds and a delayed callback is set for 3 seconds after which the voicemail is permanently deleted from the database. If a second (or third or fourth) voicemail is deleted subsequently, the previous voicemails that were waiting for the undo timeout are deleted immediately. Bug: 22460745 Change-Id: I84b70994275975e4e3020321884d382cc87098dc
2015-08-14Rename "Recents" to "Call History".Andrew Lee
+ All user-facing indications should now say "Call History". + I renamed many references in code to "Call Log", which is how we internally refer to many of the components related to call history. It seemed excessive to rename the fragment, list items, adapters, and other references to that throughout our codebase. Bug: 23017190 Change-Id: I99719122ce592962ff99705dcf4b16e17eee3ab7
2015-08-11Show entire call history in Dialer tab.Andrew Lee
+ Rename some logic around identifying the scenario (tab vs activity) for the call log. + Add padding at the bottom of the call log. + Make call log in tab show all history, not just recent history. + Rename promo card logic in CallLogAdapter, since it is VM specific. - Remove extra view holder, and associated logic. Bug: 23017190 Change-Id: I1f36f414647705a779ee14e8b43e88bf711bba56
2015-07-28Start contact info cache query thread in onResumeYorke Lee
Bug: 22783484 Change-Id: If7881ad6a18eafe0b2ea8411b8472ba444320991
2015-07-17Add permission prompts for contacts and dialpad searchYorke Lee
Update the following fragments to handle denied permissions -Contacts Search (Contacts and Location) -Dialpad Search (Phone) Tweak and remove some of the onTouch listener logic as they are no longer valid with the new UI. Instead of intercepting the touches when the query is empty and returning to the main dialer activity, allow the fragments to remain on screen if the permission request UI is showing. Modify signature of onEmptyViewActionButtonClicked to remove unused permissions parameter. Bug: 22174668 Change-Id: I96d00f2ab45df936dca602ac025f723638ac02c4
2015-07-15Update Dialer UI to prompt for permissionsYorke Lee
First pass at adding functionality to Dialer to prompt for permissions. Also updates the UI for various fragments when there are no contacts/calls available to unify the UI with the new UI for the permissions denied state. * Refactor existing empty view functionality and encapsulate into a new custom view class * Add action buttons to existing empty views in various fragments -> Speed Dial (Add to favorites) - scrolls to all contacts fragment -> Recents (Make a call) - shows dialpad -> All contacts (Add a contact) - Launches add contact dialog * Add functionality to various fragments to detect if permissions are denied, and request the permission when the action button is pressed. -> Speed Dial (request for contacts permission) -> Call Log (request for phone permission) -> All contacts (request for contacts permission) * Remove now unneeded EmptyContactsListAdapter Remaining issues (to be addressed in a follow up CL to avoid bloating this CL): UI alignment tweaks for empty view to match mocks If the read contacts permission is requested from the speed dial screen, the all contacts fragment doesn't update with the list of contacts until restarted. Bug: 22174668 Change-Id: I70721914bb9b32910d746de288ccac049749e42e
2015-07-07Go to recents tab instead of CallLogActivity for call views.Nancy Chen
Use the DialtactsActivity instead of CallLogActivity when accepting ACTION_VIEW intents for the "calls" mime type. Also remove an unused method in CallLogFragment. Bug: 22266705 Change-Id: I1bf089901b1a5f9534c9f7a8484c12e535a87749
2015-06-19Rewrite of MediaPlayer logic.Andrew Lee
+ Control MediaPlayer instance more tightly. Wait until prepareContent to initialize instance. Release MediaPlayer when it is no longer needed. + Instead of using isFinishing, check explicitly for orientation change to know whether to release MediaPlayer. + Change Presenter to singleton, to address audio change wonkiness. + Only create a Presenter if the call log fragment shows voicemail. + ... fixing a variety of cases. - Temporarily disable proximity sensor until blocking issue is fixed. Bug: 21856243 Change-Id: Ic06e98bb5278467c3cce726a06b6cf3d855861a2
2015-06-18Pass activity into VoicemailPlaybackPresenter.Andrew Lee
We will use it to set windows flags to help make playback behaviors reasonable. Bug: 21856243 Change-Id: I7c1ecb9e225a507ea8956ccc31d667361a4b6824
2015-06-10Move "Report" to CallDetailActivity.Andrew Lee
- Delete old report button/handling code. + Convert menu click listeners into single onMenuItemClick method. + Add and populate objectId on PhoneCallDetails, to be able to tell from the CallDetailActivity whether to enable reporting. Change-Id: Ie4b9a3c1835792cbba04dc826f71fd2e53071400
2015-06-09Fix some more unit tests...Andrew Lee
+ Pull out voicemail playback tests into their own test class. + Fix CallDetailActivity unit tests. + Some minor tweaks to functional code to facilitate. Bug: 21471763 Change-Id: I0f1747ab7ad6eba7dd2a7f6f8cfd060b409771bc
2015-06-03Move VM playback from details to call log.Andrew Lee
- Delete voicemail playback in the CallDetailActivity. + Add voicemail playback to the call log list items. + Move the VoicemailPlaybackPresenter to the CallLogFragment. + Fix some retaining state for both call log (expanded items), and preserve rotation/state functionality for voicemail playback. This included some changes to the Presenter logic. + Fix some tests. Bug: 21471763 Bug: 21170557 Change-Id: I30aae3a52c5bbf74a5075a9666343c337b1fc0df
2015-05-27Refactor Voicemail Playback into standalone view.Andrew Lee
+ Substitutes the existing playback widget in CallDetailActivity, although the plan is to move this to the call log shortly. + Convert the widget from a fragment into a layout. This allows us to more easily create multiple instances of the voicemail widget in the same view, as we intend to do in the call log. + Shift UI-related logic from Presenter to the Layout. + Fix janky seeking, so that it now works correctly consistently rather than sporadically, and doesn't need to buffer again. - Remove the VariableSpeed player formerly used in the Presenter. We don't use this functionality anymore, and this allows us to directly used the framework MediaPlayer (instead of a custom legacy proxy). Bug: 21170557 Bug: 20693172 Change-Id: Ia34f459df10e43763b32fdb0954f83e882664231
2015-05-22Handle runtime phone permissionYorke Lee
We don't have access to the call log without the phone permission, so disable the following functionality: 1) Call log display 2) Show call history overflow menu option 3) Last number dialed functionality Bug: 20266292 Change-Id: I2f1d4b8b5f747d2fa04c3a9c291f9cf5147646b7
2015-05-13Don't set voicemail status message in Call Log.Andrew Lee
This code has been unused for quite some time, as far as I can tell. Bug: 20433758 Change-Id: Ic9fef01954720c24d8ba6971534897a88af42a8f
2015-05-12Indicate whether CallLogAdapter is for Recents.Andrew Lee
Bug: 20924950 Change-Id: I6163565ec508d245afd83112927d636a4a50f27e
2015-05-11Dynamically check for permission denialsYorke Lee
Don't crash when performing certain operations that the dialer might not have permissions to execute: * Access voicemail provider * Certain TelecomManager methods Add a class TelecomUtil that checks for permissions/default dialer status, and handles the privileged operations appropriately. Bug: 20266292 Change-Id: Ibe8a85440b9ca20169b5ce3be24d1a385caaebb6
2015-05-04Add "show call history" list item.Andrew Lee
+ Add new VIEW_TYPE to the CallLogAdapter. + Reintroduce boolean on CallLogAdapter to specify if a call history list item should be shown. + Add new ViewHolder and layout for footer. + Some minor styling tweaks and cleanups. Bug: 20108202 Change-Id: Ie4a86bff9e53cfd69ef8b061af048f40f4358579
2015-04-09Replace ListView with RecyclerView in call log.Andrew Lee
Yay, finally! + Replace ListView with RecyclerView in layout and fragment files. + Change GroupingListAdapter to extend RecyclerView.Adapter instead of BaseAdapter. + Change CallLogListItemViews to extend RecyclerView.ViewHolder. + Adapt onBindViewHolder and onCreateViewHolder methods in the CallLogAdapter. + Update/rework tests for related classes. + Fix a bug in the GroupingListAdapter, where childCount was not updated for standalone views, and the previously cached group size was used instead. Set childCount to 1 for standalone views. - Removed the idea of creating different views for standalone vs group vs group headers from the adapters. This logic has not been used for quite some time and all these functions funneled into createView/bindView methods anyways, so there is no logical difference. If we need to create custom views in the future, we can leverage onCreateViewHolder's viewType parameter. Bug: 19372817 Change-Id: I1b7289340600609669db22d8bc89265240d0b561
2015-04-08Remove footer view.Andrew Lee
This depends on ListView footer functions, but the Call Log is being migrated to the RecyclerView. This view will be added back later, with that work tracked in b/20108202 in scope of M. Bug: 20108202 Bug: 19372817 Change-Id: I55201e068362083bf5c18ebd08c2e57c97c1b827
2015-04-08Merge "Remove expand/collapse animations in the Call Log."Andrew Lee
2015-04-07Separate empty view logic from ListView.Andrew Lee
Don't rely on setting the empty list on the ListView for controlling visibility of the list view and empty view. Save the reference and control this in the call log fragment. This removes a dependency on ListView-specific functionality which is not found in the RecyclerView. Bug: 19372817 Change-Id: I0a7e2e2366e258013ddbe30bd2ee7efb38349421
2015-04-06Remove expand/collapse animations in the Call Log.Andrew Lee
- Remove animation logic in CallLogFragment. - Remove expand listener from CallLogAdapter. + Update tests and constructor. This preemptively removes expand/collapse behavior. While this will result in a janky short-term experience, this is an incremental step in shifting to RecyclerView and the new "Card" UI. I figured it would be most efficient to delete it straight up, rather than coding in intermediate logic to work with the RecyclerView because it will be made obsolete by the Cards UI anyways. In the long run, expand/collapse animation behavior will be restored once the call log is migrated to RecyclerView and converted to Cards. Bug: 19372817 Change-Id: Icbdc7dcb9f2f2223456c29334c826d38917b087a
2015-04-06Merge "Don't track ReportDialog state in CallLogFragment."Andrew Lee
2015-04-03Don't track ReportDialog state in CallLogFragment.Andrew Lee
This was implemented formerly to prevent a crash on rotation, but this can be done by specifying that the Report fragment should be retained in GoogleDialer. This means that the fragment will not be retained now if the activity is killed off by the system, but I think this should be okay since it is a dialog. Bug: 19949319 Change-Id: If3ebca4625fce93d9d9ce3c9bde6d92729f21c40
2015-04-03Create ContactInfoCache from CallLogAdapter.Andrew Lee
This pulls code from the CallLogAdapter, with only tweaks to variable names and comments, to create a ContactInfoCache responsible for logic pertaining to looking up and caching contact info. The logic is intended to be unchanged for now, although in the future it can/should probably be cleaned up sometime. Bug: 20038300 Change-Id: I60a57b0a665496522a6b51c9e6e41a4fd6dbad1f
2015-03-31Move view expand logic to CallLogListItemViews.Andrew Lee
Bug: 19372817 Change-Id: I92d9f001155d4a059c89bc4b00abcef4e817f32d
2015-03-26Move Report-Bad-Data toast to GoogleDialer.Andrew Lee
Bug: 19949319 Change-Id: I32a2217a24915a7d862a1c9d521fc0c45f0ecb68
2015-03-20Notify adapter of data set change onResume.Andrew Lee
Even if we don't need to reload the data, refresh the list view with the data we currently have. We display the call log times using text descriptions relative to the present. This refresh updates those descriptions. Bug: 19653523 Change-Id: Ib5bc79d52946baabac86c2b9459ab66901d5615b
2015-03-18Clean up extra helper methods.Andrew Lee
To assists with readability, clean up call log fragment by calling the contents of the helper methods directly, to remove extra level of indirection created by the helpers. In most cases, these helpers were one-offs, or were direct calls to another helper method. Bug: 19372817 Change-Id: I96d96bee6b300a26987513d50115de0c4cd522c1
2015-03-16Delete call log list item extras.Andrew Lee
- Remove isCallLog specific code from adapter; now everything will always be in the call log. - Remove unneeded adapter bits from ListsFragment; there is now no shortcut card shown in the lists fragment. - Remove call log list item extra. We won't bind badges using this any more. This will be superseded by the actions. Remove badge-related code in CallLogAdapter. + Leaving the add-person icon, since it will be used in the future. Bug: 19372817 Bug: 19627987 Change-Id: I4db8149761b017e02e89c081930a05f3aafe9606
2014-12-15Fix ClassCastException in CallLogFragmentYorke Lee
Use listview instead of root view as parent when inflating footer view so that it is always inflated with AbsListView.LayoutParams Bug: 18762303 Change-Id: If9f5a38017d07d35962881750e2b403aa95287cb
2014-10-31Merge "Use improved analytics in Dialer" into lmp-mr1-devBrian Attwell
2014-10-30Use improved analytics in DialerBrian Attwell
Remove dependencies on old analytics code. Initialize analytics inside DialerApplication. Improving analytics CL #4/4 Bug: 18039620 Change-Id: I52f68e50297db2aae61d67d9bdbe66cb1d75aafc
2014-10-24Remove CallLogListItemViewYorke Lee
CallLogListItemView is a custom view that might have done something once, but doesn't anymore. It makes the code more complicated to read and requires a lot of casting that does nothing at all. Change-Id: I53efb35367d748aa3d164d0fb56686175967c90e
2014-10-23Delete duplicated classBrian Attwell
Also renamed dialerbind package Analytics CL #2/5 Bug: 18039620 Change-Id: I45722015978038cdccb6a848c28e4b6c90d5aa4f
2014-09-22Add null check when auto-scrolling listViewYorke Lee
Bug: 17609944 Change-Id: Icb14a0539ee3e57ddfc8e237e440b4563fccabf5
2014-09-12Merge "When view's expand, scroll them onto screen" into lmp-devBrian Attwell
2014-09-12When view's expand, scroll them onto screenBrian Attwell
Do this for views at the top and bottom of the list. Bug: 17410384 Change-Id: I5506909ae93658dea4e86b4a541eefbec28c15e4
2014-09-12Fix cursor handling in CallLogQueryHandlerJay Shrauner
Remove dead code and fix potential leak. Bug:17472228 Change-Id: I0d628b20efa424c049457b57b4a669670d3d51ed
2014-08-19Expand transcription view when call log item clickedYorke Lee
* Expand and collapse voicemail transcription view as necessary when tweaked * Modify call_log_list_item layout slightly to pin the photo at the top of the call log item Bug: 16320164 Change-Id: Ib0d84dd77065dce86339c852313adb94b34ba5aa
2014-07-30Changing Dialer Fragments to implement Analytics.Sai Cheemalapati
Dialer's Fragments now implement AnalyticsFragment. All Fragments now have access to sendHitEvent, which is a no op in AOSP Dialer. Change-Id: Ife6ab7d5369a1c96caaedbe1c59e6d07a0adae87
2014-07-18Replace shadow workaround with a different oneChris Craik
bug:15023558 Change-Id: Ie85b281ff77694874953ff88297e0d034560c82b
2014-07-16Added AsyncTask to report dialog/fixed rot (2/2).Sai Cheemalapati
Dialog used to cause crash on rotation due to issues with Fragment Manager. The solution now is to dismiss it before rotation and reinitialize it in onCreate. Bug: 11150383 Change-Id: I972785637e0c302547cd9ac11b5c8f84723b2863
2014-07-16Added a dialog to confirm caller id reporting (1/2).Sai Cheemalapati
Database and call log are now updated when user confirms. Bug: 11150383 Change-Id: Ic716e92bcb2280c1d352bd2232bda516e83349b2
2014-07-16Revert "Added a dialog to confirm caller id reporting."Sai Cheemalapati
This reverts commit cee1e65f0c411e35c4521922c3e9def13e01fe64. Change-Id: Ic50fd443856ea7e22714423939ac782cd4e89276
2014-07-15Added a dialog to confirm caller id reporting.Sai Cheemalapati
Database and call log are now updated when user confirms. Bug: 11150383 Change-Id: Iafaca2172f2d44a6edf8514f7d900888dab9cf0e
2014-07-02Make dialer use PhoneManager.cancelMissedCallsNotification.Santos Cordon
Change-Id: I1e8de39efe0918b974cf949e80e15e4c85c1a70c
2014-06-26Add icon indicating subscription in call log/call historyNancy Chen
Display an icon in the call details showing which connection provider (subscription) is responsible for the call. Bug: 15473965 Change-Id: I0c6755864083799b8bafe20c3692b0d943beeee3
2014-06-10Update empty list assets and text.Andrew Lee
- Add new assets for empty lists, delete old no favorites banner. - Adapt phone_no_favorites.xml into generic container shown when a list is empty. - Add helper to DialerUtils to configure empty list view with a provided image and message. - Configure empty list view in relevant fragments. - Some text styling/margin/padding to get things to spec. A minimum height is used on the message so that the icons and text will be laid out in a consistent manner. Bug: 15513399 Change-Id: I52337a4544065a991d3b8084d96b01516a458c42
2014-05-27Set call log item view alpha to 1 after expand animation end.Andrew Lee
This bug is on the inexplicable side, but this seems like it fixes it. Without this, after navigating out of the activity and then back, it appears taht the the action view's alpha defaults back to the value being set at the start of the expand animation (0), making the view invisible. Bug: 15275605 Change-Id: I8173f305569e2e8f5e13f34235922b830dd4e532
2014-05-27Merge "Changing the call log collapse animation for previous item so it ↵Andrew Lee
happens at the same time as the expansion of another row; this eliminates the need for calling notifyDataSetChanged on expand/collapse." into lmp-preview-dev
2014-05-23Changing the call log collapse animation for previous item so it happensTyler Gunn
at the same time as the expansion of another row; this eliminates the need for calling notifyDataSetChanged on expand/collapse. Bug: 13962594 Change-Id: I8f67de49c7cc6382acb0fd26e887d4cdc8e5d6e3
2014-05-23Merge "Add padding to bottom of listviews" into lmp-preview-devYorke Lee
2014-05-22Add padding to bottom of listviewsYorke Lee
Bug: 15164687 Change-Id: I142e8900b471bfb05cf8dad1ed8b0d8d0e4efae6
2014-05-22DO NOT MERGE. Tidy up call log shadow/touch interactions.Andrew Lee
- Constrain the recents list footer ripple to its dimensions. - Eliminate bottom margin on the call log list items. - Changed translationZ on expand to apply to the call log list item instead of just its primary action view. - Adjust the outline clipping so that a shadow doesn't appear under the day group header, now that the translation is applied to the entire list item. - Instantiated a number of fixed property values in onCreate() in the CallLogFragment, instead of whenever they're needed. Bug: 15165669 Change-Id: I5ed81ae49fb0c3f6eed360f247c1fd67278a628c (cherry picked from commit 6e765f9a71b450809c4916a5d5562cdc1372a39a)
2014-05-21Merge "Correctly save CallLogFragment state"Yorke Lee
2014-05-21Correctly save CallLogFragment stateYorke Lee
Save CallLogFragment state correctly in onSaveInstanceState, and restore it later in onCreate Bug: 15134554 Change-Id: Ifb0880c4ce86f0f9c4d5d1713fe9d9e54257ceb4
2014-05-21Changing expand/collapse so that only a single row is expanded at once.Tyler Gunn
Bug: 13962594 Change-Id: I2a553e65b447d4b944e20ee420da3a726ec30aeb
2014-05-16Cleaning up shadowing and animation of call log expansion.Tyler Gunn
Bug: 13962594 Change-Id: Ifbbf7fa75ffccfb893e6825774565c1e21e86c76
2014-05-13Animate call log expand/collapseYorke Lee
2014-05-12Use new nested scrolling APIsYorke Lee
Bug: 14234101 Change-Id: Icb77f327e455fc9f0fb797b3f31d6f3467b2f358
2014-05-05Adding support for expandable call log entries.Tyler Gunn
Bug: 13962594 Change-Id: I19a4a65dce922619df0a709293ca291c345c8be7
2014-04-22Add view call history at bottom of recentsYorke Lee
Bug: 13936108 Change-Id: Ic688d65240dada75b014b6684d4bebed208551bd
2014-04-18Merge "Adding support in the CallLogFragment for filtering calls based on ↵Tyler Gunn
call date/time."
2014-04-17Add call log fragment to ListsFragmentYorke Lee
Also move the initialization of CallLogAdapter to onCreate instead of onCreateView. onCreateView is called everytime the fragment is detached from the childManagerView, and causes the CallLogFragment to create a new CallLogAdapter every time, losing all the previous call log entries. Bug: 14136111 Change-Id: I057bb7441df2974604066d5d62716fdd628990f3
2014-04-16Add voicemail tab to call history tab bar.Andrew Lee
- Add new CallLogFragment for voicemails in CallLogActivity. - Provide new empty message in CallLogFragment. - Add voicemail title string to strings.xml. - Removed some unused imports and variables. Bug: 10696509 Change-Id: I2ba9e0cfdb8cda73d7e61712559020f2857992a1
2014-04-16Adding support in the CallLogFragment for filtering calls based on callTyler Gunn
date/time. Bug: 13964654 Change-Id: Ia9db8b35469b5cea9d5ae1a5ce6fba16ab1e825c
2014-02-03Call History Affordances SwapTyler Gunn
1. Swapped the intents for the primary view 2. Changed the icon for the secondary action button 3. Added a vertical divider line to separate the secondary action button from the primary view 4. Cleaned up the accessibility text Change-Id: Ifd4ceff0d67b1587c4378e29be7344de50057a7d
2013-12-13am a6536611: am f427ab83: am ce150742: am dc372cc7: Merge "Add a content ↵Elliott Hughes
observer for voicemail to the call log fragment" * commit 'a65366114ad3b1014c22d8a84c74a94fb7f47139': Add a content observer for voicemail to the call log fragment
2013-12-05Add a content observer for voicemail to the call log fragmentHUANG Menghuai
The voicemail status message was not updated with new voicemail status. Change-Id: I3430bb5c21d8b25c863ca1e74f48774012c961c8 Signed-off-by: HUANG Menghuai <menghuai.huang@orange.com>
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-09-16Fix missed calls not updating properlyYorke Lee
This fix updates the new/old state of missed calls in the call log properly once more. Instead of using this flag to track whether or not to show the call shortcut, we store a date in Dialer's shared preferences to allow us to only show call shortcuts newer than a certain date. Bug: 10780687 Change-Id: Icc03992a65512a85dc6673c431ded34c73b6ba2b
2013-09-14Follow up on build break to fix unit tests.Chiao Cheng
Change-Id: I82b7fa50601f6dad60038fd1b9c5f0aad2f374f5
2013-09-11Add enable reverse number lookup link to call card.Chiao Cheng
Bug: 10525344 Change-Id: I6f01110e76222a2558374426675e285cfca5801b
2013-09-10Don't clear call shortcut when entering call logYorke Lee
Also fix issues with call shortcut being too easy to swipe to dismiss. Bug: 10365541 Bug: 10688277 Change-Id: I78136b2eea1863d6c313b6eba526638cd54f9272
2013-09-09Make the call log shortcut swipeableHongwei Wang
Bug: 10365541 Change-Id: I0301644d3fbb9a0284bbe9b2c468a46474e8c6f8
2013-08-15Change primary actions of the CallLog items.Christine Chen
- When the CallLog item is in the CallLog fragment, the primary action remains to be opening the call detail page. - When the CallLog item is in the Favorite fragment, the primary action changes to be calling the number directly. The secondary action is hidden unless it is to play a voicemail. Bug: 10308694 Change-Id: I28ca7aa783bcca35eb8b41f6e8508d08062dd253