summaryrefslogtreecommitdiffstats
path: root/src/com/android/dialer/DialtactsActivity.java
Commit message (Collapse)AuthorAgeFilesLines
* IMS: Enable entry 4G conference call in Dialercdu2015-10-301-0/+6
| | | | | | | | 1) Start conference call in dialtact 2) Start conference call in dialpad with numbers 3) Show 4G conference call option only if IMS is registered Change-Id: I9f9c379e26b904f7749a72241e51cc6660f98d53
* IMS: Fix to remove unwanted group conference icon.Suchand Ghosh2015-10-061-3/+7
| | | | | | | | | | | | The unwanted group conference icon is visible along with add contact icon at all contacts tab in dialer application. Remove unwanted group conference icon from add contact icon at all contacts tab. Also fix to show dial icon instead of call icon when launch dialer app. Change-Id: Ifaa6c829e3956d326961313c21ff7ba64e4d670e CRs-Fixed: 911210
* Dialer app changes for IMSSuchand Ghosh2015-10-061-6/+83
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | IMS Conference URI UI changes 1. Add a new button for initiating conference URI call in the Dial screen. 2. Send a intent for the conference call with a extra to indicate the call type as conference. IMS: Allow dial Conference call without URI List Allow place conference call without URI List and don't show error toast in this case IMS: Clean up Conference URI system property Remove system property "persist.dbg.ims_volte_enable". Add platform configuration flag and user's enhanced 4G LTE setting to decide IMS capability. IMS: Add participant support Insert "add_participant" extra to dial intent IMS: Fix dialer app crash issue due to NPE FragmentActivity can be null if it's not yet attach. So it can be null in such case. Add null check to avoid NullPointerException. Change-Id: Ib35c394dd10dea7526601824f11e5ebd9db459ce
* Fix bug in FAB actionYorke Lee2015-07-271-1/+2
| | | | | | | | If in contact search, always show the dialpad if the FAB is clicked. Bug: 22751856 Change-Id: I069064489664a1f9c3749b34e8b333f878bbf04b
* Add permission prompts for contacts and dialpad searchYorke Lee2015-07-171-15/+10
| | | | | | | | | | | | | | | | | | 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
* Update Dialer UI to prompt for permissionsYorke Lee2015-07-151-1/+20
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* Don't cache results of permission checkYorke Lee2015-07-131-1/+0
| | | | | | | | For maximum safety, always check the current permission status on the fly. Bug: 22455059 Change-Id: I05da7ec1ad2e885e3e5e78e14585c876ac19178e
* Go to recents tab instead of CallLogActivity for call views.Nancy Chen2015-07-071-0/+3
| | | | | | | | | 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
* Merge "Restore Dialer content after permissions granted" into mnc-devYorke Lee2015-07-011-0/+2
|\
| * Restore Dialer content after permissions grantedYorke Lee2015-07-011-0/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | First pass at making Dialer display the call log, favorites, all contacts, and contact search after permissions are granted withut having to restart the app. Update cached permission status in onResume for Dialer activities Update SpeedDialFragment to correctly initialize loader in onResume if it was null previously because of revoked permission. Bug: 22205650 Change-Id: I68982e69395bc9c7da84ff3221cd12b8f79005f9
* | Merge "Fix dialer monkey NPEs" into mnc-devYorke Lee2015-07-011-0/+6
|\ \
| * | Fix dialer monkey NPEsYorke Lee2015-07-011-0/+6
| |/ | | | | | | | | | | | | | | | | | | | | | | Monkey tests exposed a bug in Dialer where certain call shortcuts could show up if contacts permissions were disabled and the UI was changing quickly. Don't enable shortcuts by default, and make sure to correctly disable all shortcuts in the case of missing permissions. Bug: 22225052 Change-Id: Icdd81412f695860eb322d7ccdc30555591c584d0
* / Ensure the EXTRA_SHOW_TAB is checked for all new intents.Nancy Chen2015-07-011-5/+8
|/ | | | | | | | | | onNewIntent is only called when the activity is already active so when an intent is sent to start the DialtactsActivity on a specific tab when the DialtactsActivity is not already active, the code to switch to the specific tab is not called. Move this code to onResume() instead. Bug: 21120186 Change-Id: I735eae22ca5de54f4c17688777b4309616f2c691
* Accessibility fix for Dialer search resultsYorke Lee2015-06-291-0/+9
| | | | | | | | | | In portrait mode, resize the listview to fit above the dialpad, so that accessibility services can correctly traverse the view hierarchy. Bug: 20172384 Change-Id: I35fb49be7bea5d13d951c4d954ddaf9d8d12780e
* Make the full search bar respond to clicksYorke Lee2015-06-271-0/+1
| | | | | Bug: 21663461 Change-Id: I79bf44f7956511e6894a122a98a69d7793b9a785
* Add extra to jump to DialtactsActivity tab.Andrew Lee2015-06-231-0/+7
| | | | | | | | | + For the voicemail notification, jump to voicemail tab. + Jump through some hoops to handle this properly when waiting for the voicemail status to be retrieved. Bug: 21120186 Change-Id: I5a82f3ecafadb45246e6637e8275a09f78cc188a
* Fix FAB state and transitions.Andrew Lee2015-06-161-20/+57
| | | | | | | | | | | | | | | | + Change to dialpad FAB in search (used to stay as add contact FAB, if we were in the Contacts list). + Position dialpad to align end in search (used to stay in the center, if we opened the search from Speed Dial). + Restore correct position/icon when exiting search. + Add correct FAB scale in/out behaviors in for transitions between lists fragment and search UI, search UI and dialpad, in particular for when the FAB changes position from END to MIDDLE when going from search UI back to Speed Dial. + Add FAB scale in/outs for showing/hiding the soft keyboard. Bug: 21161760 Change-Id: Idbddbac161e459e3708d43395850d80927d5e448
* "Emergency" dialpad behavior.Santos Cordon2015-06-111-0/+9
| | | | Change-Id: I132a119238c8de7249a4944e6dda472b3851637e
* Merge "Enter search UI even if dialpad is not animating" into mnc-devYorke Lee2015-06-021-3/+8
|\
| * Enter search UI even if dialpad is not animatingYorke Lee2015-06-011-3/+8
| | | | | | | | | | | | | | | | | | This fixes a UI bug that happens when the dialpad is displayed without animation. Bug: 21524134 Change-Id: Ic566b09c2839d7f34d5d983f67e592c1b2d50d2e
* | Don't use Log.isLoggable to determine DEBUG flagYorke Lee2015-06-011-1/+1
|/ | | | | | | This allows unnecessary debug statements to be stripped out by the compiler. Change-Id: Id1b6f8bd6c86cf5014e4b76524aa3839eb31bbb8
* Merge "Handle runtime phone permission" into mnc-devYorke Lee2015-05-261-0/+3
|\
| * Handle runtime phone permissionYorke Lee2015-05-221-0/+3
| | | | | | | | | | | | | | | | | | | | | | | | 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
* | Merge "Handle runtime permissions in Dialer" into mnc-devYorke Lee2015-05-261-5/+11
|\|
| * Handle runtime permissions in DialerYorke Lee2015-05-221-5/+11
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Conditionally disable the following features if the required permissions are not available: 1) Display of all contacts 2) Display of speed dial 3) Caller ID in call log 4) Import/export contacts 5) Conversion of People.CONTENT_ITEM_TYPE and Phones.CONTENT_ITEM_TYPE into a phone number (via DIAL intent) 6) UndemoteOutgoingCallReceiver 7) Contact Search 8) Contact lookup in call detail activity 9) Nearby places search Bug: 20266292 Change-Id: I6d26902acb0eac407ae7bc18c11aa6ec57299506
* | Some ListsFragment cleanups.Andrew Lee2015-05-211-22/+18
|/ | | | | | | | | | - Delete unused shortcut code. + Consolidate logic for reporting the current lists view. + Change page position logic to make private the list fragment's calculation of the type of tab in RTL. Bug: 21328994 Change-Id: Ic05a895fce77fea668798fca6e67863a2fcfd88a
* Fix potential Dialer NPEsYorke Lee2015-05-151-1/+1
| | | | | | | Fix NPEs encountered during monkey tests Bug: 21167534 Change-Id: I98b6f675adfd233d3583c363f7daeca1bc14d8b7
* Reorganize Intent utilities, add send SMS intent.Andrew Lee2015-05-131-38/+11
| | | | | | | | | + Rename CallIntentUtils.java to IntentUtil.java. + Consolidate various intent creation methods to new file, and update referenes throughout the application. Bug: 20433758 Change-Id: Iee9e37985217c38c816124d0e74dff40a2871680
* Merge "Fix jank when showing dialpad" into mnc-devYorke Lee2015-05-081-9/+26
|\
| * Fix jank when showing dialpadYorke Lee2015-05-081-9/+26
| | | | | | | | | | | | | | | | Reorder sequence of events so that the search fragment is only displayed after the dialpad animation is complete. Bug: 20891354 Change-Id: I3aaba7c715f740d7a7ee8f5273eee3b85bfdc958
* | Merge "Change FAB icon and behavior for contacts tab." into mnc-devAndrew Lee2015-05-051-21/+27
|\ \ | |/ |/|
| * Change FAB icon and behavior for contacts tab.Andrew Lee2015-05-051-21/+27
| | | | | | | | | | | | | | | | | | | | + Change the icon/behavior depending on the tab position. + Move current tab position logic from DialtactsActivity into the lists fragment. - Delete unused method, shift some helpers around. Bug: 19366434 Change-Id: I6da767300907b3afd006248afb882bebde7bdfe6
* | Merge "Revert "Fix NPE from ListsFragment crash."" into mnc-devAndrew Lee2015-05-051-2/+1
|\ \
| * | Revert "Fix NPE from ListsFragment crash."Andrew Lee2015-05-051-2/+1
| |/ | | | | | | | | | | This reverts commit d10eef28fc67aea0e4f4f49813b802ce1df5f7c7. Change-Id: I0867f991c071fc55d1eadf611386b713c910d17f
* / Add "show call history" list item.Andrew Lee2015-05-041-9/+4
|/ | | | | | | | | | | + 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
* Fix NPE from ListsFragment crash.Andrew Lee2015-05-011-1/+2
| | | | | | | | I'm not sure if anyone else is seeing this, but this change didn't seem like it would be harmful to make. I was running into sadness because mListsFragment was undefined. Change-Id: I75712c2cb3626002372ac9b4812c44c2ed74c12f
* Use TelecomManager.placeCall APIYorke Lee2015-04-231-3/+3
| | | | | Bug: 20348183 Change-Id: If1b193f933b4a7b2b322784b0cbbc66c210b25df
* Make menu options protected instead of private.Andrew Lee2015-03-251-2/+2
| | | | | | | | Thsi allows Google Dialer to add a feedback option and handle its behavior accordingly. Bug: 19254693 Change-Id: I64ab34049406d10f53504af8d5eda9ac29758ef8
* Remove OverlappingPaneLayout.Andrew Lee2015-03-061-6/+0
| | | | | | | | | | | | | - Remove the OverlappingPaneLayout, which is no longer needed since the recents card has been removed. - Known Issue: SearchBar is no longer hidden on scroll. - Known Issue: shouldShowActionBar does not return correct value. I plan to fix these KIs in a follow up CL, but going for incremental changes for now to try to keep it apparent what is being done. Bug: 19372817 Change-Id: I9ae1ca19820c87f252863074a5bcab6923b03558
* Fix FrameLayout cast exception.Andrew Lee2015-02-261-4/+3
| | | | | | | | | | | | | | | I was seeing a ClassCastException: android.widget.FrameLayout cannot be cast to com.android.dialer.widget.SearchEditTextLayout. But, it's kind of bizarre, because it disappeared after I tried implementing this fix, even when creating what should have been a clean branch replicating the original conditions (?). In any case, this would make us more resilient to changes in the custom view used by the action bar by searching for the SearchEditTextLayout by id. Change-Id: I9f4909b55e4ef29562712643048eb3fb942ff684
* Merge "Move CallUtil into Dialer. P1/3"Brian Attwell2015-02-041-3/+3
|\
| * Move CallUtil into Dialer. P1/3Brian Attwell2015-02-031-3/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | CallUtil relies on the a priviliged intent that should only be used by system apps. Therefore, it shouldn't be used by an unbundled Contacts app. I'm leaving one (isVideoEnabled) method from CallUtil inside ContactsCommon. This way, when the changes that Tyler made inside m-wireless-telephony-shamu-dev (b/19062133) get merged back into master both ContactsCommon and Dialer will be updated. Bug: 18777272 Change-Id: I49c9cc714ded01d523ed770a5bf62cf92c378e2f
* | Add DialpadFragment on-demand instead at on startupYorke Lee2015-02-021-18/+30
|/ | | | | | | | | | | | Add the DialpadFragment dynamically instead of everything at startup. Once added, it is then shown/hidden instead of removed for performance reasons. Reduces startup time on a N5 from 603ms to 440ms. Bug: 18431193 Change-Id: I0482bd8277896ed8a6956fc03b6afaf44b442eb3
* Add systrace events to track Dialer startup performanceYorke Lee2015-01-281-0/+12
| | | | | Bug: 18431193 Change-Id: I92db4ae61405d8d8445b72e7ac0daa0794af8335
* Updating "Add Contact" to pre-populate full contact info.Tyler Gunn2014-12-051-2/+16
| | | | | | | | | | | | | 1. For recent call entries with a name and phone number, the name will now also be added. 2. For recent call entries which have complete address information provided by nearby places, all information except the contact photo will be added. The contact photo is excluded, as the ContactsLoader would attempt to load the contact photo while parsing the contact information. On a slow connection this could cause a noticeable pause while adding the contact. Bug: 17308163 Change-Id: If2e78bd1257096b344ff2dd266dcdbaeed4f1471
* Correcting population of search box with voice search results.Tyler Gunn2014-11-201-1/+17
| | | | | | | | | | | | The issue is the onActivityResult callback which receives the result of the voice search is called BEFORE the dialtacts activity is resumed, and hence the search results fragment is not properly shown (since resume has not yet completed). Changed so that the search results are stored until onResume, where they are applied to the search box. Bug: 18410823 Change-Id: I02985f722643846067678a67f2c1fda76434fbc4
* Allow ILD information to be populatedEvan Charlton2014-11-081-1/+1
| | | | | | | | | Expose the dialpad's ILD (international / long distance) fields to be populated by the dialer. Bug: 13334252 Change-Id: Ia366148ef1318a2dacc4971d51a3bd34ec3c39de
* Merge "Improve Dialer analytics" into lmp-mr1-devYorke Lee2014-11-061-0/+28
|\
| * Improve Dialer analyticsYorke Lee2014-11-051-0/+28
| | | | | | | | | | | | | | | | | | | | | | | | | | * Send screen view for first fragment loaded inside ListsFragment * Send screen view for voicemail playback fragment * Send screen view for currently active fragment when activity is restarted * Don't send spurious screen views on rotation * Send screen views for call log fragments in call log activity, and differentiate between them with a tag Bug: 18158037 Change-Id: I09fda53db33f6a6acc4a3b477de992aa94921c71
* | Reset mSavedState in onNewIntent because the activity is refreshing.Nancy Chen2014-11-051-0/+1
|/ | | | | | | | | Currently mSavedState is reset to false in just onResume, but it needs to be reset earlier so that the dialpad is allowed to show itself when an ACTION_DIAL intent is sent. Bug: 18242314 Change-Id: I9ddd2a431edc4c2d1cc447b14ee8d1347d139552