summaryrefslogtreecommitdiff
path: root/src/com/android/dialer/list/AllContactsFragment.java
AgeCommit message (Collapse)Author
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-07-17Refresh all contacts fragment when permission grantedYorke Lee
Bug: 22174668 Change-Id: I6d23fb76c6b67093ee1193fba45bd20baa50a68f
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 permissions UI per mocksYorke Lee
Bug: 22174668 Change-Id: If6757ff66c411228cfa22d70caaf6cc532fd2b31
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-06-23Protect against CP2 crash in DialerYorke Lee
Bug: 21755796 Change-Id: I81a337db0728455ffa72b3067bc5d2260dd03db8
2015-06-08Fix class variable declaration.Andrew Lee
Bug: 21687649 Change-Id: I212243932c1be5306d97db9020874cadf5a55058
2015-06-05Show empty view after load returns empty.Andrew Lee
... instead of before. Mildly disorienting as a loading experience. Bug: 19937778 Change-Id: Id1c7d48f3379350030aaed4f4a50320d22f970f6
2015-05-22Handle runtime permissions in DialerYorke Lee
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
2015-02-26QuickContacts can prioritize phone mimetype. Part2Brian Attwell
Whenever using QuickContacts in Dialer, make sure to prioritize the phone mimetype. Bug: 18391003 Change-Id: Ie5a93ad9e1919f470a638d4235d91fe337cb5ca3
2014-07-16Show contacts without phone numbers in All contactsYorke Lee
Bug: 16324722 Change-Id: I14a26aefbe641412336c4c7228e51cd167d22833
2014-06-11Update strings for empty lists in Dialer.Andrew Lee
Also, some slight renaming for consistency across dialer. Bug: 15513399 Change-Id: Ia66084630fc9473dc24303aab0d777e1bde1b41a
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-06-09Dialer changes for correct selection bounds adjustment.Andrew Lee
Do not adjust the bounds for the search fragment. Do adjust the bounds for the contacts fragment. Also, now we hide the scrollbar on the search fragments. Bug: 15517457 Change-Id: I0e5dedfcfdd1da359358671b57dd1132e66d6861
2014-05-22Add padding to bottom of listviewsYorke Lee
Bug: 15164687 Change-Id: I142e8900b471bfb05cf8dad1ed8b0d8d0e4efae6
2014-04-25Defer to default photo position in all contacts list.Andrew Lee
Bug: 13956531 Change-Id: Iaf6d28dba9d6ddc222eb58ebca7d99c021703305
2014-04-23Disable quickcontactbadge in AllContactsFragmentYorke Lee
Disable the quick contacts badge in AllContactsFragment and just use the regular photo ImageView so that contact photos can be made round and have the overlay removed without affecting other apps that use the QuickContactsBadge (e.g. Gmail). Also tag the view with the contactUri so that it can be used to bring up the QuickContactActivity when clicked. Bug: 13747208 Change-Id: I02288fd64d133d75c7b5e635d9b450f0b2cf7673
2014-04-21Renable fast scroller in All contactsYorke Lee
Change-Id: I60177bb1bc11801b4beaadaca8da598a86c19302
2014-04-17On click, open quick contacts for list items in Dialer's Contacts.Andrew Lee
- Change AllContactsFragment to extend ContactEntryListFragment. - Replace PhoneNumberListAdapter with DefaultcontactListAdapter, and filter only for contacts with phone numbers. - Handle item clicks to open the ContactListItemView's QuickContact. Bug: 13956531 Change-Id: If3ceb5c3a988b0c701387eca22a3ae5de055c66a
2014-04-17Reattach listener when fragment is destroyed and recreatedYorke Lee
Bug: 14136602 Change-Id: I49796b7a545c6c650680cb0ee6152a93381b2736
2013-08-09Extract ShowAllContactsFragment and add it to its own activityYorke Lee
Bug: 10244050 Change-Id: I9c815aecc3fe9f0db239129749fb5be3c73f51be