summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Use same default contact photo for list items and chipsmindyp2012-12-104-1/+0
| | | | | | Fixes b/7706601 which asset do we want to use for the default contact icon? Change-Id: I0bd414aefb783a4a64ce0041dcd8f7f8d5911b83
* Fixup delete logicmindyp2012-12-031-2/+3
| | | | | | | Its only a delete if the user has removed a single character, otherwise, we are looking at replacement, probably from a reverse lookup Change-Id: Ia7c7b94d9e2fb037cb19abdb6696f7df0d351856
* Make sure we only use the invisible chips optimization if we are showing the ↵mindyp2012-12-031-1/+2
| | | | | | | | | "more" chip In the case of calendar, we never shrink the field, so this optimization can't be used Change-Id: I30e3312b8e686be5143f96d3d2820e023158957d
* mMaxLines was not being set correctly; dont draw hidden chips on first ↵mindyp2012-12-035-79/+313
| | | | | | | | | | | | | | | render pass mMaxLines was always zero Setting the value correctly avoids an extra layout which makes it faster to render chips Use an "invisible" recipient chip for anything > than max chips we can show before showing the more chip; this avoids a lot of unnecessary drawing and decoding of 9 patches in the first pass; once these are resolved (or the user makes them visible), they will be correctly drawn as visible chips Part of b/7492291 First 2 contacts takes too long to resolve into chips when there are many contacts Change-Id: I37817381f93efb968940031d8a8b77fb62c8919a
* Remove unnecessary call to tokenizemindyp2012-11-301-18/+2
| | | | | | | | the address is already tokenized Part of b/7492291 First 2 contacts takes too long to resolve into chips when there are many contacts Change-Id: Ibefe1ce45ea8309e51c9cf25bf058d88ebf75ec1
* Make sure we proplerly edit created chips.mindyp2012-11-271-11/+47
| | | | | | | | | | | We need to edit the created chips before the text is changed so that we don't count the existing "," when deleting Also, make sure to move chips that are being edited as text to the end of the field Fixes b/7547813 When I try to delect an email address for each charater, it blocks automatically again. Change-Id: I60661945b75ab0f4ffbb04e71971d16e2900c26c
* Merge in sms fixesmindyp2012-11-271-1/+10
| | | | | | | merges: https://googleplex-android-review.googlesource.com/#/c/252609/1 Change-Id: I04a0ffa4feb36683f1392ec730742f5f7e10fa32
* Remove the unneeded call to "findtokenstart"; we already have the token startmindyp2012-11-141-3/+1
| | | | | | | Part of b/7492291 First 2 contacts takes too long to resolve into chips when there are many contacts and general speed improvements 4ms faster to create a chip Change-Id: Ib016492cf63aa87ee3ace8e6bb7988fbe0a37749
* Don't validate the recipient text each timemindyp2012-11-144-78/+72
| | | | | | | | | | | | Instead, validate once. Saves ~10ms per chip creation Win. Part of b/7492291 First 2 contacts takes too long to resolve into chips when there are many contacts and general speed improvements Change-Id: I6f3da136da23942c8bec25cee7038d475e7005e6
* Reduce time until first revision of a chip is drawn.mindyp2012-11-091-8/+5
| | | | | | | Means less time showing plain text. replace call is expensive. Change-Id: I1be571af78497c2dfff724b612d60ededc98ff36
* dont replace the text in the text field when editing a fake or generated entrymindyp2012-11-081-4/+4
| | | | | | | | | We are editing the entire text in there, and that includes the display name and any other information...so just remove the span This means we dont trigger a text change that triggers a scroll Fixes b/7499873 Odd scroll when touch non-contact chips with quote text enabled Change-Id: I0c537e7fec663abe3cec96a5b59bc52caa009a30
* Make sure that we take the existng temporary contact, where available.mindyp2012-11-071-2/+3
| | | | | | | | | Temporary contact entry will give us display name and address if it has it when there is no contact match Fixes part of b/7481045 recipient address briefly drawn w/o friendly name Change-Id: Id5cf6b770d1179c81d9c9b808af4681e632d18a7
* Make sure that the last "fake entry" chip is correctly committedmindyp2012-11-071-2/+3
| | | | | | | | | Fix logic to correctly determine that this "recipient chip" is really text Fixes part of b/7481045 recipient address briefly drawn w/o friendly name Change-Id: I4c5244581a4fce5de58d6d9c510e1df16674c338
* Update chips to follow new ux spec for replacementmindyp2012-11-071-30/+78
| | | | | | Part of b/7481045 recipient address briefly drawn w/o friendly name Change-Id: I2f3c63f555143c66b3d4f466b60e0ca884d6302b
* Reset maxlines when the user expands textmindyp2012-11-061-2/+5
| | | | | | | | | To avoid an initial jump when changing over a possibly large numbers of contacts to chips, start with maxlines of 2 from some apps, and eliminate this when the user chooses to expand. Part of b/7481045 recipient address briefly drawn w/o friendly name Change-Id: I5c8cd5c1569befa28a67ddb1f4153e03e896c25a
* Fix for panorama icon not always showing up in photo viewer.Mark Wei2012-10-252-1/+6
| | | | | Bug: 7392422 Change-Id: Ifff054c86366eb0b495a06ead9e0dc60123e90c4
* Show old resultsPaul Westbrook2012-10-251-5/+36
| | | | | | | | Keep showing old recipient results when no local results are returned, if we are waiting for server results Bug: 7407129 Change-Id: If495ff6437da064206923dc95ee61b7a4f19c2f3
* Restart loader on attachment cursor updatesPaul Westbrook2012-10-241-1/+5
| | | | | Bug: 7403076 Change-Id: I620403db9f7304e99ca4e9c0c58a439e277225d0
* Load preview firstPaul Westbrook2012-10-121-14/+12
| | | | | | | | | If the preview is available, load the it first, while waiting for the full size image to load Bug: 7340082 Bug: 7298245 Change-Id: I64934001d832844a776f8d9c1f2abcece552f79c
* Set the scale type for the default image iconPaul Westbrook2012-10-121-0/+1
| | | | | | | | | By setting the scale type to center, the default icon is not scaled up. Bug: 7298245 Bug: 7340457 Change-Id: I66200a1c751ca80e878e55a7b9daa656a6cbe98d
* Make sure we check the most up to date text for the token offsets.mindyp2012-10-031-5/+5
| | | | | | | | | | | The issue here was that we were using the old version of the editable string (cached in var text) to look for the start/end of tokens, but the result of calling commitChip may have updated the text (added corrective rfc822 formatting, or a display name) Fixes b/7268603 [Manta] List of email addresses pasted into the To field is broken Change-Id: Iccc8dbf78a018c84fd818582d10ff2b02a787276
* Add comments to the recipientedittextview replace code.mindyp2012-10-011-0/+3
| | | | | | makes it easier for others to debug/ review Change-Id: Icdcbaa9074c81ef33943b24e8e0b544513360d8a
* Fix crashes associated with new logic to replace entire address with name + ↵mindyp2012-09-291-4/+1
| | | | | | | | address Fixes b/7257614 crash when replying to a message Change-Id: I6dcda376073f941fba4b09a647bdb00a92e4ccce
* The "original text" is just what we are putting in the text view, which is ↵mindyp2012-09-251-1/+1
| | | | | | | | displaytext Fixes b/7233276 Crash at clicking Email - ReplyAll on Manta Change-Id: Icd5e2c0c2afb625a6b181592b2da27a008266a33
* Add Exif parserPaul Westbrook2012-09-252-170/+343
| | | | | | | | | | | Class to parse exif headers of images to detect orientation Modify ImageUtils#decodeStream to parse the exif header and respect orientation Bug: 7087307 Change-Id: I93c3a69a50ae26d3fd4e96944439f87e9d511945
* Make sure when we reverse lookup a recipient, we replace the underlying text ↵mindyp2012-09-241-2/+6
| | | | | | | | string as well. Fixes b/7146034 Conversation message header doesn't show friendly names Change-Id: I043d352e1c6546e5a8c07854e832f31c3a71d24d
* Use gesture detector from support libPaul Westbrook2012-09-212-670/+8
| | | | | Bug: 7206080 Change-Id: I9b5d332d095335f13b61c9c9ccd8152a462a9eb5
* Prevent NPE while viewing photo from attachment.Mark Wei2012-09-191-2/+4
| | | | | Bug: 7189283 Change-Id: Ibcb98ae13cf801a6934e0ed4efb4c5349678dcce
* Integrate copy of GestureDetector into photoviewerPaul Westbrook2012-09-172-8/+657
| | | | | | | This allows the MR0/1 behavior to be used when Email/Gmail is running on older versions of the platform Change-Id: I1936d36ddb9f09a3b48d38c2ad44e70ac002fbda
* Prevent NPE in Gmail while viewing photo from attachmentMark Wei2012-09-171-1/+4
| | | | | Bug: 7174197 Change-Id: I29ca226b5134888dbe3488f859d9790fe1388984
* We add the separator ourselves later if it wasnt specified in append.mindyp2012-09-101-4/+1
| | | | | | Fixes b/7137725 Attendees are lost after editing Change-Id: I48cecde9e5e2e9e8648393c8b71e6911cd1cbc9f
* Be extra careful with commas in recipient chipsmindyp2012-09-101-6/+10
| | | | | | | | | Fixes b/7132543 email addresses not recognized when using Gmail ICS I added 2 in a row to be extra certain, and always check for the LAST instance of "," Change-Id: Id963971303a99642865a79c6264264e62a920151
* Allow action bar to be updatedPaul Westbrook2012-08-301-0/+6
| | | | | | | | Allow the action bar to be updated when the photo list loader loads data Bug: 7082929 Change-Id: I476df1fa2ec7dcb1adfe5aed359a5126c60be179
* Fix NullPointerException when tapping attachment.Mark Wei2012-08-302-2/+4
| | | | | Bug: 7083179 Change-Id: I9955aeda9a0d2bb6d30ce9f7e7e3961cb47284e0
* Attachment image viewer should not scale images larger than original size.Mark Wei2012-08-292-3/+10
| | | | | Bug: 7049410 Change-Id: I1ed2555203e1541f1481cae4f17f532eaa57c1cd
* Fix crash in email with attachmentsPaul Westbrook2012-08-282-41/+38
| | | | | | | There isn't a need to call swapCursor in a runnable Bug: 7072747 Change-Id: I0a0a9b6835acc4a1d1748c94f4d8bec4551638b0
* Deal with commas within quoted textmindyp2012-08-271-3/+16
| | | | | | | | If there is a comma within quoted text, it is NOT a chip ending token Fixes b/7001805 Names appended to email ids like "Mathew, Deepthi E" are split into two chips while replying Change-Id: I87f34a44282b3baf8d106dd21f8211ad301395be
* Abort posted runnable if cursor is no longer openMarc Blank2012-08-211-0/+4
| | | | | Bug: 7002552 Change-Id: I38ce1231b0ec88ebf02d4d0edb5495b8baac65d5
* Import translations. DO NOT MERGEBaligh Uddin2012-08-201-1/+1
| | | | | Change-Id: Idbc0ec87eb8a3b07a380375df7ccd63fc5b258bb Auto-generated-cl: translation import
* Import translations. DO NOT MERGEBaligh Uddin2012-08-176-9/+9
| | | | | Change-Id: I0b76b4206e7ceca5b8456ad19a540e1be3d58de8 Auto-generated-cl: translation import
* Import translations. DO NOT MERGEBaligh Uddin2012-08-161-2/+2
| | | | | Change-Id: I3b0bfe3884f03d4ebdec81109a2d13791a4faafc Auto-generated-cl: translation import
* Merge "Import translations. DO NOT MERGE" into jb-ub-mailBaligh Uddin2012-08-151-0/+8
|\
| * Import translations. DO NOT MERGEBaligh Uddin2012-08-151-0/+8
| | | | | | | | | | Change-Id: Icd9cda3aa634cddf8429e243a2bf9a84311931be Auto-generated-cl: translation import
* | Fix some photo view problemsPaul Westbrook2012-08-154-34/+33
|/ | | | | | | | Make sure to stop the indeterminate progress bare when we can't load an image Bug: 6956516 Change-Id: Ifb69ca2e08a8ddfb351989d8e276e7fb6e3b06e5
* Merge "Import translations. DO NOT MERGE" into jb-ub-mailBaligh Uddin2012-08-151-0/+8
|\
| * Import translations. DO NOT MERGEBaligh Uddin2012-08-1412-0/+96
| | | | | | | | | | Change-Id: I986e7913c40cf76c35081b1aa4a25e29bb8987a7 Auto-generated-cl: translation import
* | Import translations. DO NOT MERGEBaligh Uddin2012-08-1411-0/+88
|/ | | | | Change-Id: I0ce5691e0dcce4a800500b82cb7696ac9d016949 Auto-generated-cl: translation import
* Import translations. DO NOT MERGEBaligh Uddin2012-08-1335-0/+280
| | | | | Change-Id: If457f15f47a6b6b2ab3df6320b75cad7e8c4f6c5 Auto-generated-cl: translation import
* Created a sample photo viewer implementation.Andrew Sapperstein2012-08-1021-3/+341
| | | | Change-Id: Ida5ab5c3247a52c5fbbd495d6e127c18493356ce
* Import translations. DO NOT MERGEBaligh Uddin2012-08-101-1/+1
| | | | | Change-Id: Ieb0d6ac2c8f37ae7df5aaf28a4b810cbfa978291 Auto-generated-cl: translation import