summaryrefslogtreecommitdiffstats
path: root/res/layout
Commit message (Collapse)AuthorAgeFilesLines
* Contacts: incall plugin implementationErica Chang2016-04-072-35/+33
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Contacts Card: fixed encoded contact Uri invite intent -When a contacts card is launched from a dialed phone number history, the particular contact does not exist in contacts so the uri is encoded. In this case we'll provide either the display name or phone number as the Uri argument for getInvitePendingIntent. CD-346 Contacts Card: fix callog -added in cm-12.1 calllog related changes that accidentally didn't get merged in CD-354 Contacts Card: removed redundant code from cm-13.0 creation -in Quick contact card onclick handler there's redundant code since cm-13.0 was created Contacts Card: fix multiple ContacLoader calls issue -consodliate one AsynTask to load contact data -added a synchronized method checkAndBindContactData to fix contact card update condition Note. The internal implementation of AsyncTask.doInBackground is done on FutureTask; onPostExecute run on a main loop via Message. If the onPostExecute is already placed on the main loop, it can no longer be cancelled. cancel() is the most effective while an AsyncTask is still running doInBackground, upon completion, it'd either execute onCancelled() or onPostExecute() CD-324 Contacts: lookup plugin account handles as a backup -Need to rely on AccountManager to lookup logged in plugin account handles just in case the plugin fails to return a valid one CD-422 (2/2) Contacts: refactor -makes use of PhoneCommon/CallMethodInfo.java, CallMethodHelper -new InCallPluginHelper extends CallMethodHelper -InCallPluginUtils uses CallMethodHelper singleton and StartInCallCallReceiver CD-301,CD-374,CD-423 Change-Id: Iaa6f3f4539969a8cdad7c719f71ffaad8dd8cc39
* Clean up multi picker activity.Danny Baumann2016-01-083-237/+82
| | | | Change-Id: Id8d66cf3ff5f806a053f40bd4d8db453ab292219
* Revert "Support adding contacts to blacklist and whitelist"Michael Bestas2015-12-191-8/+1
| | | | | | | | * We have our own blacklist This reverts commit 7419add9bcb08dc7f2156010f5b1a246b7587524. Change-Id: I7ff690c6706082f83290ce7d421f2ae45538e1c0
* Contacts: Add contact lookup with attribution to quick contactsMatt Garnes2015-12-021-10/+35
| | | | | | MMS-86 Change-Id: Ib85ebfd3da14da6f6e04e9a4ec751460a85eeeec
* Fix up group fragment padding.Danny Baumann2015-12-014-17/+1
| | | | Change-Id: I0030dbef9afb54b08511b5a499225add1ef995a3
* customize SIM/PHONE account display infoblong2015-09-151-1/+1
| | | | | | - Customize SIM/PHONE account display name and icon Change-Id: I5c3daa4c26a828e72c3efe3cdb65df20cc321702
* Support adding contacts to blacklist and whitelistblong2015-09-111-1/+8
| | | | | | | | - Allow add contacts number into blacklist and whitelist by long press phone numbers if Firewall.apk is installed - Add icon to identify black/white number in contact detail view Change-Id: Ia00648bde341de67355b6c896fb21e6c8d7aa466
* Add contacts group featureblong2015-09-103-5/+22
| | | | | | | - Restore group tab which was deleted - Add local group feature for phone account Change-Id: I298642d353492f2ff443fbc5a2f3fbf4f4eb024e
* Add contact memory status functionblong2015-09-102-0/+201
| | | | | | | - Add one menu to display the used and total contacts count for each account Change-Id: Ie6639ba6964f2fc45ef456032c2c35b79d3220e0
* Add multi pick contactsblong2015-09-073-0/+319
| | | | | | | - Add multi-pick for contacts,email,callog and phone - Add batch delete for contacts and callog Change-Id: If8d94d62e55e0f2207867cf6a2dcdc20984fecc4
* Show account info for inserts and read-only contact editsWalter Jang2015-06-192-0/+61
| | | | | | Bug 21637149 Change-Id: I224ab188230f119f49f4ab7ddef4b51c451aa892
* Don't initially focus any contact editor input fieldWalter Jang2015-06-092-0/+14
| | | | | | Bug 21644158 Change-Id: I84d1406b4db1646dcbf059ce84a2cc7534b0bd83
* Add content description to compact editor overlayWalter Jang2015-05-211-1/+2
| | | | | | Bug 21032304 Change-Id: Ib7364d20606a82cb037e9df06afb6b2dd802967a
* Allow line wrap in "Add new account" butttonBrian Attwell2015-05-151-0/+1
| | | | | Bug: 20500695 Change-Id: I9d0252bcee32f7127f3f30fdd53c5d66b31abd1d
* Add spacing above the compact contact editor name fieldnWalter Jang2015-05-041-0/+1
| | | | | | Bug 20299277 Change-Id: I6eeb1982fab49dc7e77a68754d9aa09810bb6b7d
* Improvements to multi selectBrian Attwell2015-04-202-1/+2
| | | | | | | | | | | * selection bar now uses an <- instead of X icon * FAB animates away when entering either selection or search mode * allow selection mode to be entered once already in search mode Demo: https://drive.google.com/a/google.com/file/d/0B-vjphxTdjuANERMUDF6Y2NyQXc/view?usp=sharing Bug: 19549465 Change-Id: I657bf564c8e6cdfca6f7779918c4807e09e78d9b
* Don't add compact editor fragment if it's already thereWalter Jang2015-04-032-8/+3
| | | | | | Bug 20040887 Change-Id: Ib968203e0340cd442e5652376a9e2aa7347994b1
* Add gradient behind photo icon is contact photo is setWalter Jang2015-03-171-0/+6
| | | | | | Bug 19732687 Change-Id: Iad82b23aedf25e3e9a9ced8d2cd30190b69240de
* Move contact photo edit icon from ActionBar to lower right cornerWalter Jang2015-03-161-0/+17
| | | | | | | | Screenshots https://docs.google.com/drawings/d/1mekRSq4i3Y810Ow2tbNBDKBWl1NGmR4GLR7vlocZOxI/edit Bug 19732687 Change-Id: I68f969eed59d925d9afd6d5c8e33ec80cbff5cfd
* Compact contact editor UI tweaksWalter Jang2015-03-163-30/+39
| | | | | | | | | | | | | | | | * Move delete ActionBar icon option back into the overflow * Move the "More fields" option back to left alignment and give it accent color * Make unfocused fields 25% black * Layout/padding tweaks - Remove the 0 bottom padding on names so that all fields have the same spacing between each other - Use the min edit height on the "More fields" row so that the spacing is the same as the other fields. Bug 19729447 Change-Id: Ia11c74c1b65f96f937d6e51ed143f5f088b41561
* Tweaks requested for multi selectBrian Attwell2015-03-051-4/+5
| | | | | | | | | UX requested two tweaks: 1. Unchecking the last check box exits selection mode 2. Selection count should be inset 72dp Bug: 19549465 Change-Id: Icae0109e54317463cf224e41fc851bff8a512c53
* Merge "Multi-select to share Part 2"Brian Attwell2015-03-022-4/+52
|\
| * Multi-select to share Part 2Brian Attwell2015-03-022-4/+52
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | UI work to supprot multi-select. Long pressing starts selection mode. For now, you can only share the contacts that you have selected. Manual tests: * Starting selection mode * starting selection mode by long pressing the Me Profile * RTL layout * rotation in search mode * rotation in selection mode * typing on keyboard while in selection mode: $ adb shell input keyboard text 'this%sis%san%sexample' (should do nothing) * press search key while in selection mode: $ adb shell input keyevent 84 (should do nothing) * sharing contacts via multi selection Bug: 19549465 Change-Id: If438bddfaaee1f69e4c888716f926abcd00ddbc6
* | Move "More fields" text on compact contact editor to the endWalter Jang2015-02-241-1/+2
|/ | | | | | | | To match the mocks Bug 19124091 Change-Id: I1c7e942cb545b5e2b85086ecb03f8b10630dbbd2
* Use a split screen for the compact contact editor in landscapeWalter Jang2015-02-242-69/+90
| | | | | | | | | Also renamed the compact header since we're not doing the toolbar over the photo right now. Bug 19124091 Change-Id: I91032e149252d635d564064a3652df4cc0233c6c
* Apply the quick contact color to default photos in the compact editorWalter Jang2015-02-201-1/+2
| | | | | | Bug 19124091 Change-Id: I375fc8c88ab7b1bd452fbeab0e3e6444b83be094
* Hide extra empty kind editor on compact contact editorWalter Jang2015-02-201-4/+3
| | | | | | | | | | | * Also left align "More fields" * Only show one structured name * Be a bit smarter about the profile photo before we have a real split screen Bug 19124091 Change-Id: I046ea59437b035d43df045363677a3aaba0dca43
* First pass on photo support for compact contact editorWalter Jang2015-02-201-0/+16
| | | | | | | | Only updates the primary photo for now. Bug 19124091 Change-Id: I1886888b4cf249da4c483d570b9db6e05564518a
* Add placeholder button for showing fully expanded contact editorWalter Jang2015-02-201-0/+31
| | | | | | Bug 19124091 Change-Id: I8051b8df460fd0bbc30466d736c7606caaa0837c
* Fix up names on the compact contact editorWalter Jang2015-02-171-0/+12
| | | | | | | | | | | | | | * Don't show a blank structured name if there is a non-empty value and don't ever show more than one blank structured name either * Group phonetic and nicknames together instead of interleaving with structured names and each other * Use a KindSectionView for nicknames (for now) so that it isn't intended so differently from everything else. Bug 19124091 Change-Id: I50f41c0a0efb39de98a5b96c7da47b6ad6243633
* First pass on showing only non-empty field on compact edit viewWalter Jang2015-02-121-9/+37
| | | | | | Bug 19124091 Change-Id: I49660c326f5829540463295218530f0a2d0fad9d
* Move some contact editor functionality into new base classesWalter Jang2015-01-282-0/+58
| | | | | | | | | | | | | | | | To make room for a new "compact" contact editor. The Status and SaveMode interfaces in ContactEditorFragment were moved to ContactEditorBaseActivity but the Listener interface was moved to the ContactEditorBaseFragment. The logic in ContactEditorFragment to construct the result Intent after successful saves was alos moved to the ContactEditorBaseFragment. This reverts commit 02375f1e45ade453c56810f32d63dfe8eebe4f44. Change-Id: Ib0129d9ba4e4351677b6979c5f720df2094bf48d
* Revert "Move some contact editor functionality into new base classes"Walter Jang2015-01-262-58/+0
| | | | | | This reverts commit 5d1c571dbe5b4a60aec6cb81d69e9e595813268e. Change-Id: Ia9df02198b460529c157fbee6012349b0eca0bf3
* Move some contact editor functionality into new base classesWalter Jang2015-01-232-0/+58
| | | | | | | | | | | | | | | | To make room for a new "compact" contact editor. The Status and SaveMode interfaces in ContactEditorFragment were moved to ContactEditorBaseActivity but the Listener interface was moved to the ContactEditorBaseFragment. The logic in ContactEditorFragment to construct the result Intent after successful saves was alos moved to the ContactEditorBaseFragment. Bug 19124091 Change-Id: I5dd0b64580026a72757025915ee59be0b7d1dcbc
* Unbundle from contacts contract part 3/3Brian Attwell2015-01-081-14/+0
| | | | | | | | | | | | * Remove some tests * Move ContactsContract.Intents.UI into Contacts * Remove references to ContactsContract.ProviderStatus.DATA1 and refactor to avoid usage of a new useless data object Discussion: go/contacts-contact-intent-ui Bug: 18777272 Change-Id: I9c6125cc30710e4637b38f3785608abb9928d1a2
* am 56bdde8f: am 85a15ee9: am be8cff94: Merge "Reflect framework dimen ↵Brian Attwell2014-12-181-4/+4
|\ | | | | | | | | | | | | changes in editor" into lmp-mr1-dev * commit '56bdde8ffd1c66264ab031d19255cb9ac82b74a7': Reflect framework dimen changes in editor
| * Reflect framework dimen changes in editorBrian Attwell2014-12-181-4/+4
| | | | | | | | | | | | | | | | | | dimens_material was recently updated with new values in ag/599191. These changes need to be reflected inside the Contacts editor in order for the editor to look good. Bug: 18004959 Change-Id: I0c8eb0b3275d797e4a71ca0fbea846b8eea5f3db
* | Remove dead PhotoSelectionActivityBrian Attwell2014-12-161-31/+0
|/ | | | | | | | The activity had dependencies on some hidden APIs. Since it is dead anyway, lets remove it. Bug: 18777272 Change-Id: Ib0071e2ef609fd53be4acb784e5cf67bb44155b7
* Switch readonly editor to textviewsBrian Attwell2014-12-093-22/+20
| | | | | | | | Switch the readonly editor to use TextViews instead of EditTexts again. UX decided it liked this better. Screenshot: go/ba_screen_captures/contacts/b18004959_edit_screen_material/readonly_editor_textview.png Bug: 18004959 Change-Id: Ic70639fb10eee1688cb622f8f07ab0463a206a28
* Change text colors to reflect their stateBrian Attwell2014-12-042-1/+45
| | | | | | | | | | | | | | | | | | | | | | | | The editor's text color suffered from two conflicting problems 1) It didn't all pass GAR 2) The difference between hint text and regular text is too subtle to differentiate at a glance Changes 1) Once a LabeledEditorView is non-empty, the text color of the spinner should no longer be the hint text color 2) Once an editor field is focused, all fields in the same EditKindSection get a slightly darker color. Since the various name editors, don't actually belong to a EditKindSection extra work needed to be done for them. 3) Drop down lists use non hint colors Read only editor continues to use the darker hint color. There is no need to strongly distinquish hint colors from non hint colors in the read only editor. Bug: 18004959 Change-Id: Ia6b16ab882b2fcb9113c2ac880e741f62115a1f9
* Fix clipping wrapped Button textBrian Attwell2014-12-011-0/+2
| | | | | | | | | | | | | | | | | | Fixes two issues 1) We don't want the button base line aligned 2) Height of larger button shouldn't be constrained to the size of the smaller button. By default, this is true unless weight applies to height. But on sprout devices this doesn't happen inside AlertDialogs (this works properly on Hammerhead, even if I make the text long enough to force text wrap). I work around this by using measureWithLargestChild. The bug is so subtle, that I'm not going to bother wasting time convincing the framework team this is a bug, or looking into this deeper. Bug: 18251517 Change-Id: Ia6eeedf6ed6eeddcd3946902705c74724c6c2329
* Collapse extra raw contact editorsBrian Attwell2014-11-266-96/+186
| | | | | | | | | | | | | | | | | There are now two different header styles 1) When creating a new raw contact: if there are multiple accounts to create the raw contact under, then show a header with an acconut selector 2) Otherwise, show a visually distinct account header without a drop down account selector. If there are multiple raw contacts, this header also lets you collapse raw contacts Typical users, who only have a single writeable account, will never see header (1). This is fortunate, since switching between the two header styles is a bit visually inconsistent. Bug: 18004959 Change-Id: I133a7355a220f20b55657a6c1a51ff44665ea3b9
* Make color tinting less offensiveBrian Attwell2014-11-251-2/+0
| | | | | | | | | | | | | | | | | -don't tint colors when opening QuickContacts in its semi-collapsed state. Ie, the state it starts in when opened from Dialer -the transition from untinted to solid color is quick -always apply the black gradients to QuickContacts. Using less tinting makes the absence of gradients a bigger problem. We could have tweaked WhitenessUtils to apply the gradient in all problematic cases. But this turns out to be the majority of cases. So we should just apply the gradient all the time. -made the gradient more attractive Bug: 17944406 Change-Id: I46c8a7a3fccc0f7a7e8bb7470dee621edf92b8cb
* Improve content descriptions a bitBrian Attwell2014-11-132-2/+2
| | | | | | | | * Don't apply content descriptions to empty images * Content descriptions for mimetype images consistently omit the word "section". Ie, "email" instead of "email section". Bug: 18004959 Change-Id: I9d74b78dda7f071a0e7bdefe38eda3ad4b136fd2
* Material design readonly editorBrian Attwell2014-11-124-58/+115
| | | | | | | | | The readonly edit screen is a strange beast. At most, it only shows fields for phones, emails, photos and names even if more data is available. This CL updates the appearance of these fields. Bug: 18004959 Change-Id: I25847483cef36bb4c98f4b169970344b90e63add
* Merge "New design for photo editor" into lmp-mr1-devBrian Attwell2014-11-121-32/+63
|\
| * New design for photo editorBrian Attwell2014-11-101-32/+63
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The photo editor field now looks like the mocks. It includes a RadioButton that allows users to choose which photo is primary. This RadioButton only appears if more than one raw contact has a photo inside the contact. Additional changes: -fixed non-regression that made it impossible to set some photos as primary -fixed non-regression that made it possible for multiple photos to appear as primary -I fudged with a bunch of padding values in order to compensate for View insets and paddings. This can't always be done perfectly, since some insets/paddings vary based on screen-configuration. I needed to start taking fudging with these paddings in order to make the photo editor look consistent with the other editor fields. This CL doesn't bother ensuring the readonly photo edit field looks good. This will be done in a later CL. Bug: 18004959 Change-Id: I683f3ffa8e7f8683c2c083a2b4592b2b95c58c63
* | Merge "Remove unwanted padding from delete button" into lmp-mr1-devBrian Attwell2014-11-101-2/+0
|\ \ | |/ |/|
| * Remove unwanted padding from delete buttonBrian Attwell2014-11-071-2/+0
| | | | | | | | | | Bug: 18004959 Change-Id: I2f573ffc453d016c6a4cb57e036dcc7e888be8c1
* | Use larger photo in contact editorBrian Attwell2014-11-061-2/+2
|/ | | | | | | | | Increase the size of the photo in the contact editor. This means we can no longer rely on thumbnails. We now need to load contact photos from Uris. Bug: 18004959 Change-Id: Ice2099998194adad9336c5d90e9873a230ca4bd5