summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Chips: Add a view attribute for maximum number of chips parsedstable/cm-12.1-YOG3CRaj Yengisetty2015-04-072-2/+30
| | | | | | | | Additionally add a dynamic way to set maxChipsParsed Change-Id: I8e88d4268b8e2ecc6de26d8cf69a985821c8e9f0 (cherry picked from commit c274746186af89f4c11499771678696d18158476) (cherry picked from commit 9f53ad13ad78945689c6e16aad127bdfca4c4779)
* chips: fix NPE errorsstaging/cm-12.1Jorge Ruesga2015-03-232-14/+35
| | | | | | | | Avoid access to potencial null references. Only chips_autocomplete_recipient_dropdown_item has all the suggested contacts views. Only remove objects with valid destination references Change-Id: I0e53d76a9bb6d319511269568a32104c8ffd3521 Signed-off-by: Jorge Ruesga <jorge@ruesga.com>
* chips: suggested contactsJorge Ruesga2015-03-2319-13/+664
| | | | | | | | | | | | | | | This change adds support for custom suggested contacts (not associated/present in the contacts provider) in BaseRecipientAdapter. Basically an implementor MUST overload BaseRecipientAdapter#loadSuggestedEntries and return a set of SuggestionEntry. This class also should react to onAddSuggestion and onDeleteSuggestion methods, invoked when the user request add/delete the suggested contact. Vectors/SVG: https://cloud.ruesga.com/f/633563d38f/ Change-Id: I8312cba56251caab82b92e4e7520f8c9db7d9690 Signed-off-by: Jorge Ruesga <jorge@ruesga.com>
* Merge tag 'android-5.1.0_r1' into HEADRicardo Cerqueira2015-03-102-2/+2
|\ | | | | | | Android 5.1.0 release 1
| * am 19fac962: (-s ours) am 966b3500: (-s ours) Import translations. DO NOT MERGEBaligh Uddin2014-10-190-0/+0
| |\ | | | | | | | | | | | | * commit '19fac962d0b00b061152605365440322c7232c71': Import translations. DO NOT MERGE
| | * am 966b3500: (-s ours) Import translations. DO NOT MERGEBaligh Uddin2014-10-190-0/+0
| |/| | | | | | | | | | | | | * commit '966b35006b2865b50bb7cc880cc5eb9f26c27a36': Import translations. DO NOT MERGE
* | | Chips: Add more logic to dismiss selection dialogstable/cm-12.0-YNG1Ilinus_lee2015-01-281-2/+4
| | | | | | | | | | | | | | | | | | | | | Check for address popup in addition to alternates with dismissing On shrink, dismiss phone generated contact chips Change-Id: I0e8b467e3faad15c0e7c46a03c8d8e4af8c3963e
* | | Chips: Fix some crashes and missing default icon scenariolinus_lee2015-01-263-11/+15
| | | | | | | | | | | | | | | | | | | | | | | | Handle a NPE when directoryId is null Handle a NPE when the contact has no address Set the default icon for SINGLE_RECIPIENT or else there is a blank space Change-Id: Ic1231ed5d25cb4a567898f7b72abeb8880b3256c
* | | Chips : Fix recipient list picked contactDanesh M2015-01-076-11/+34
| | | | | | | | | | | | | | | | | | | | | | | | | | | When picking a contact from the recipient list, and entered via append() its treated as a EMAIL. This patch differentiates items if query type is PHONE. Change-Id: Ie9674e8b7bd3213ed7d8243938df4e8dc5f51c3e
* | | Always trim destination.Danny Baumann2014-12-031-2/+2
| |/ |/| | | | | | | | | | | Makes sure isPhoneNumber() recognizes phone numbers even if they are postfixed with a space. Change-Id: I9a26488b5286c6b6e936e09403396a225ee3b8d5
* | Import translations. DO NOT MERGEstaging/cm-12.0-cafBaligh Uddin2014-10-192-2/+2
|/ | | | | Change-Id: I9ab4ea81572597b8d4be42c0ed83bfc498c7d6eb Auto-generated-cl: translation import
* Import translations. DO NOT MERGEBaligh Uddin2014-08-2420-22/+20
| | | | | Change-Id: I491228b4588e0557778d704eeb8084c598c6e00f Auto-generated-cl: translation import
* reset to 049af32 with historyQiwen Zhao2014-08-200-0/+0
|\
| * Remove deprecated locales - DO NOT MERGEBaligh Uddin2014-07-1916-352/+0
| | | | | | | | Change-Id: Iabc39702041192e4ab6b39b1e4b76c44f04b7ab4
* | Remove unnecessary font metrics callJin Cao2014-08-181-3/+0
| | | | | | | | Change-Id: Ie36a3a29b81d3e0024e0f1c29aec98a36e74dec9
* | [Quantum chips] change chips into ReplacementSpanJin Cao2014-08-186-64/+98
| | | | | | | | | | | | | | | | | | | | | | | | There seems to be an issue with ImageSpan where it sets the default text cursor size to the height of the ImageSpan. In this CL I changed the chips to extend ReplacementSpan and simply draw the chip ourselves by overriding the draw method. b/16700424 Change-Id: I66a8bf3068e24a669121c7323323fd03138ca7b3
* | Merge "Allow to paste text or html into a chip" into ub-chips-cranbrookRégis Décamps2014-08-152-14/+69
|\ \
| * | Allow to paste text or html into a chipRégis Décamps2014-08-142-14/+69
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Allows to paste into a chip HTML mime content, as long as it can be represented by text. This resolves the inability to paste email addresses copied from a web page, with content text/html. Also, fix an IndexOutfOfBounds bug when there is no selection. Bug: 13361722 users cannot paste html content in chip Change-Id: I31434105e4326d78e99df338f81d9e56fc5b83c5 Conflicts: src/com/android/ex/chips/RecipientEditTextView.java
* | | Import translations. DO NOT MERGEBaligh Uddin2014-08-1155-55/+57
|/ / | | | | | | | | Change-Id: Iaacd8a639833fe587b98bc4a6f61c56ae849a610 Auto-generated-cl: translation import
* | [Quantum chips] code cleanup and restylingJin Cao2014-08-1019-113/+53
| | | | | | | | | | | | | | | | | | | | | | | | Cleaned up the variable placements in RecipientEditTextView and removed some outdated functionality. Updated the style for alternate/single recipient dropdown to redline. b/16851158 Change-Id: I0829be08cbf6d603c4b029aec820937379c5dad2
* | am 4e2adeac: Remove instance of @+android:id/...Scott Kennedy2014-08-091-1/+1
|\ \ | | | | | | | | | | | | * commit '4e2adeac9c977646735d2aff5787bf0ab0499322': Remove instance of @+android:id/...
| * | Remove instance of @+android:id/...Scott Kennedy2014-08-081-1/+1
| | | | | | | | | | | | Change-Id: Iaa1876d4e761b35e7614fe0449a453075614f331
* | | More chip dropdown fixJin Cao2014-08-081-7/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | Don't explicitly set chip popup width since the width should inherit from the anchor view. b/16851158 Change-Id: Id83d5dee1a2c44859e83d3862ada5f6e40b97065
* | | Merge "Don't use textpaint for drawing icons" into ub-chips-cranbrookJin Cao2014-08-071-22/+24
|\ \ \
| * | | Don't use textpaint for drawing iconsJin Cao2014-08-081-22/+24
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | When drawing icons we set various shaders and attributes to convert sq icon to circle. These attributes are applied directly on the TextPaint and are never reset. As a result, we see tiny fonts. b/16700424 Change-Id: I9ffd07d64fa5c3dee6a5b312195e54559a73413d
* | | | Support custom popup anchor in RecipientEditTextViewJin Cao2014-08-083-3/+11
|/ / / | | | | | | | | | | | | | | | b/16851158 Change-Id: Icb4c511671c512e6095c8fa9607dc4d898ba2b08
* | | [Quantum chips] support RTL in dropdownJin Cao2014-08-071-0/+2
| | | | | | | | | | | | | | | | | | b/16872653 Change-Id: Ic1e587bea6426a163dbdccb7ae42d4f8dfa205f4
* | | Merge "Ensure delete listener is set for chips" into ub-chips-cranbrookJin Cao2014-08-062-8/+2
|\ \ \
| * | | Ensure delete listener is set for chipsJin Cao2014-08-062-8/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | When the app overrides the default DropdownLayouter, make sure that we always set the delete listener. b/16851158 Change-Id: I7794ef2051b837de0722df2033fe531cf4cc01f4
* | | | [Quantum chips] draw chips programmaticallyJin Cao2014-08-0614-38/+40
|/ / / | | | | | | | | | | | | | | | | | | | | | | | | Why use assets when we can draw chips background programmatically. Even better, it's faster (maybe) and more space efficient (def). b/16732676 Change-Id: Ib8dac66eb7e04bf0da08aa9cabe6349402484c5c
* | | Merge "Don't use "done" for string name." into ub-chips-cranbrookAndrew Sapperstein2014-08-042-2/+2
|\ \ \
| * | | Don't use "done" for string name.Andrew Sapperstein2014-08-062-2/+2
| | | | | | | | | | | | | | | | Change-Id: Ied4449f02ef5683764fcfeb9b95b6d0c665c1132
* | | | [Quantum chips] add custom dividers for autocompleteJin Cao2014-08-066-10/+45
| | | | | | | | | | | | | | | | | | | | | | | | b/16818548 Change-Id: Idb3a112af7a16f05bfcf9e2f9ae14f3ef32aecef
* | | | [Quantum chips] use minHeight for autocomplete dropdownJin Cao2014-08-051-1/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Use minheight instead of actual height so it takes text size into account. b/16824867 Change-Id: I935195eca0fb69d0a3b52c803bb53fef0e411e26
* | | | Merge "[Quantum chips] restyle text views" into ub-chips-cranbrookJin Cao2014-07-303-12/+10
|\ \ \ \
| * | | | [Quantum chips] restyle text viewsJin Cao2014-07-313-12/+10
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Restyle the text views and their parent layout to properly align vertically when one of the textviews is set to GONE. Previously lost the behavior with the change from RelativeLayout to LinearLayout since LinearLayout will always set the child to top regardless of it's layout_gravity. b/16383133 Change-Id: I6543af42f1e7e05e6a213ba3f37107d90439808d
* | | | | Chips show icon even if name is nullJin Cao2014-07-311-2/+1
|/ / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Not sure why this was added or why it was working before. A recipient's name can be null but it can have a valid destination, in which case we still want to show the icon. In any case, based on the comments it says we only not show the icon for generated/invalid contacts, so I'm removing the check for empty name. b/16383133 Change-Id: I16642986e503a51e52275118bea05f34973817b6
* | | | Merge "[Quantum chips] add delete button in dropdown" into ub-chips-cranbrookJin Cao2014-07-299-80/+172
|\ \ \ \
| * | | | [Quantum chips] add delete button in dropdownJin Cao2014-07-319-80/+172
| |/ / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | For single/alternate recipient dropdown there is now a delete button next to the currently selected contact for easier removal of the selected chip. b/16383133 Change-Id: Ied238b91b42673142de88a159b50772bd6b7b937
* / / / Update icon padding for invalid chipsJin Cao2014-07-304-0/+0
|/ / / | | | | | | | | | | | | | | | b/15934812 Change-Id: I9a64892f903f26933994f521e2319d3f38c4c313
* | | [Quantum] update alt/single chips to quantumJin Cao2014-07-298-26/+61
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Updated UI for alternates/single chips dropdown. Not included: X button next to selected chip for removal. b/15934812 Change-Id: Id34e28f1783f85ffbe33f82b1d230c3def27589a
* | | [Quantum chips] restyle recipient chips to quantumJin Cao2014-07-2915-37/+36
| | | | | | | | | | | | | | | | | | | | | | | | | | | Restyle recipient chips to quantum redlines, also remove padding style from non-autocomplete dropdowns. b/15934812 Change-Id: I28eef0f4b9d622f81782d12f279e78af10c14458
* | | [Quantum] chips autocomplete to quantum styleJin Cao2014-07-298-51/+143
| | | | | | | | | | | | | | | | | | | | | | | | | | | Separate layout for chips that have icons on the lefthand side and icons on the righthand side. b/15934812 Change-Id: I7b58197e46ad48bb838ee5e0c34bb06b0b74dfba
* | | Port CircularImageView for chipsJin Cao2014-07-282-3/+104
| |/ |/| | | | | | | | | b/15934812 Change-Id: Ib40bd97ea537bd91aba0caac8b7148fc24f59c0b
* | Update dropdown assets/layouts for MaterialScott Kennedy2014-07-1012-57/+105
| | | | | | | | Change-Id: I4b5684896e4e70b6f44f3feb2bf0f997265be848
* | Use a better y offset algorithmScott Kennedy2014-07-091-12/+20
| | | | | | | | | | | | This gives us a much better vertical centering of text. Change-Id: I09651e1a222cef2b60f4f59cb67ae01530e27cd2
* | Update assets/dimensions/defaults to match Material specScott Kennedy2014-07-0919-6/+36
| | | | | | | | Change-Id: I0d39a630492b08cd647bb39c2aab1bc4a86b8aee
* | am 21386e34: (-s ours) am 5179b9a3: (-s ours) Import translations. DO NOT MERGEBaligh Uddin2014-07-060-0/+0
|\| | | | | | | | | * commit '21386e34def33022f8eb7389cc18f9e02256af8c': Import translations. DO NOT MERGE
| * am 5179b9a3: (-s ours) Import translations. DO NOT MERGEBaligh Uddin2014-07-060-0/+0
| |\ | | | | | | | | | | | | * commit '5179b9a3f9b4daec5ed66594b0ef75cf93d0f1d3': Import translations. DO NOT MERGE
| | * Import translations. DO NOT MERGEBaligh Uddin2014-07-052-2/+2
| | | | | | | | | | | | | | | Change-Id: I068710e847766b0ffdd507b81878e6149f8caa34 Auto-generated-cl: translation import