summaryrefslogtreecommitdiff
path: root/src/com/android/mail/ui/SecureConversationViewFragment.java
Commit message (Collapse)AuthorAgeFilesLines
* UnifiedEmail : Set subject before setFoldersDanesh M2016-12-301-1/+1
| | | | | | Prevents npe Change-Id: I3a00e82f3c80b7e8990728ccf32b22b8d09fc857
* New keyboard shortcutsJin Cao2014-09-251-0/+17
| | | | | | | | | Does not include ctrl+ENTER for SEND & we need a new key for REPLY since we are not supporting shift. b/17070243 Change-Id: Ia5f179336dfc2b6631e1a5f26ee888f82f4873c0
* Remove above attachment promo. b/16138036.Andrew Sapperstein2014-08-071-6/+0
| | | | Change-Id: I611f0f7e6eeea0247956e0f1a9f2ec3ec51c9eef
* Updated conversation header for quantum CV.Andrew Sapperstein2014-06-301-2/+2
| | | | | | | | | | | | | | | | | | | b/15595931 Using a combination of breaking and non-breaking spaces to ensure that labels start on a new line if they don't all fit in the remaining space of the first line they can be drawn on. Starring works now. Can click the labels to open change labels again. Priority indicator is now baseline aligned. Properly drawing the label chips. Label chips moved up to the baseline RTL support. New star asset. Change-Id: Ife32339f174bff7beafc979f9cc9761cefffed72
* am 381c322e: Save to drive promo. b/7659807.Andrew Sapperstein2014-04-221-0/+6
|\ | | | | | | | | * commit '381c322eb30c39f63a2bb82812d63262eb3c1c1c': Save to drive promo. b/7659807.
| * Save to drive promo. b/7659807.Andrew Sapperstein2014-04-221-0/+6
| | | | | | | | | | | | | | | | | | Provides a space above the attachment bars to show some additional content. Default behavior does nothing. Hooks have been added to allow resizing of the message footer. Change-Id: Ib950091d176311bdb06c7c7a466223beb997a7b5
* | Inline images are not displayed for IMAP and POP emailsJames Lemieux2014-04-221-0/+14
|/ | | | | | | | | | | | | | | | | | | | | | | b/11998344 This solution covers these use cases: 1) Inline images in the Email app. 2) Inline images in .eml attachments in the Email and Gmail apps. The solution here was to override shouldInterceptRequest(...) in the WebViewClients and resolve any cid urls that are encountered within the email body. EmailProvider and EmlAttachmentProvider both gained the ability to query for an Attachment object using a message ID and cid (which is stored in the database column: contentId). With this new query in place, it was straightforward to fetch the Attachment in the WebViewClient and then obtain an InputStream to the file that backs the Attachment to return back to the WebView. Change-Id: I7c0e33e62d6cdbd6a2a3fc81e8621755bdbaf704
* Merge "View entire message UI." into ub-mail-masterAndrew Sapperstein2014-03-141-5/+0
|\
| * View entire message UI.Andrew Sapperstein2014-03-141-5/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | We need the per-message plid server support, but we are forwarding the clipped bit to the UI and showing a button based on that bit. Clicking that bit will open the plid viewer for gmail. Email should be unaffected as it does not ever return clipped as true. b/2887917. Change-Id: Iddb54e37cf650ca16a75fcbe69f1861becdd81b9
* | RTL - Align conversation header with viewStart.Andrew Sapperstein2014-03-131-2/+2
|/ | | | | | Fixes b/13432564. Change-Id: I97954654b829579d481780ddd0c550d4caa58086
* RTL - conversation view fixes.Andrew Sapperstein2014-01-281-2/+2
| | | | | | | | | | | | | | | | | b/12681840 - Properly align attachment details. b/12681242 - Message header expanded details are locale aligned. b/12681528 - Message header title and snippet are locale aligned. b/11989230 - Set each overlay view's layout direction. The first three bugs were fixed by adding unicode wrapping to a bunch of fields. The final bug was slightly more complex. In some scenarios, the overlay views's layout direction was not properly resolved. But it should always be the same as its parent so we forcibly do it now when adding new views. Change-Id: I9e065e0deaf1958ee87d098231238f6d976e9e68
* Remove Print/Print All from conversation view in Email.James Lemieux2014-01-151-0/+12
| | | | | | | b/12245916 A secondary change in this defect is to dynamically show either Print or Print All in GMail conversation menus depending on whether the conversation includes 1 or many messages. Change-Id: If78dced66893c0ae619850f2272c007747e98e26
* Deduplicate Address classTony Mantler2014-01-081-1/+1
| | | | Change-Id: I4f6df51f5641475ffaf96b0189ccc00748880cc0
* Print single message and offscreen webview.Andrew Sapperstein2013-10-111-1/+1
| | | | | | | | | b/10712542. Also supports Eml printing and secure printing (though that's email only and has some buggy rendering). Also fixes the no subject crash. b/11136365 Change-Id: Ie5f6e7d7e1762c115df3169b6e62dc439545f08c
* am 37ce6077: Update conversation header when account settings changeTony Mantler2013-10-041-2/+6
|\ | | | | | | | | * commit '37ce6077b70c94ca11063fb82c0600874d826b06': Update conversation header when account settings change
| * Update conversation header when account settings changeTony Mantler2013-10-041-2/+6
| | | | | | | | | | | | b/11066041 Change-Id: I8fad4670ce97beeadb607f7dee6570ed39601e65
* | Initial printing support.Andrew Sapperstein2013-09-261-0/+4
|/ | | | | | | | | | | | | Needs mocks and redlines and such. b/10712542 TODO: Logos for Email and Gmail. Attachment support. Use offscreen webview. Secure conversation view support. Change-Id: Iec37a9a46e506ccf12fbbb775c1b47b08a0d9724
* Add public no-args constructors for fragmentsPaul Westbrook2013-08-131-3/+1
| | | | | Bug: 10311630 Change-Id: Ic7ba4783be34a9c3d185f6cbad3001f49b310aad
* Fix ISE in SecureConversationViewFragmentPaul Westbrook2013-08-121-0/+9
| | | | | Bug: 9816528 Change-Id: Ifcd447c7eb7da94ae868baa8fae4521865357364
* More warning cleanupScott Kennedy2013-08-021-0/+1
| | | | Change-Id: I22970341bf11eb355aa495f61c022efb8db61bcb
* Final eml viewer cleanup.Andrew Sapperstein2013-06-251-0/+5
| | | | | | | | Fixes b/9560839. Now we show the title of the eml file and we also show an overflow button with settings/send feedback/help. Change-Id: I5eab245d9fd47e37b83eadcb419255939117ab39
* Working implementation of eml viewer.Andrew Sapperstein2013-06-121-139/+93
| | | | | | | | | Everything works except attachments. The implementation uses a controller that is used by both SecureConversationViewFragment and the new EmlMessageViewFragment to do the rendering work. Change-Id: I4d8b9b56e6609c3a81b902b102a90f1e50c115cd
* Refactoring of AbstractConversationViewFragment.Andrew Sapperstein2013-06-101-13/+24
| | | | | | | | | | In order to support EML viewing, we need a bunch of the overhead provided by AbstractConversationViewFragment without actually inheriting from it. Additionally, most of the code was inner classes that had no business being such. These are now moved into their own classes. Change-Id: I80769d2606b52c41dc116a6bdee17c00adc66a5a
* Refactor ConversationMessage out of MessageCursor.Andrew Sapperstein2013-06-041-1/+1
| | | | | | | | Just moved the static final inner class to its own file and fixed up the imports. Also moved the MimeMessage parsing into Message instead of in ConversationMessage. Change-Id: Ic35d4cf5e52b392d68898ff47efaeeee4d0865b0
* Mild code cleanup.Andrew Sapperstein2013-05-311-4/+1
| | | | Change-Id: I4d12e6d072d21ec5d7562a4edac253fe37301e91
* Properly size text in Email.Andrew Sapperstein2013-05-291-1/+3
| | | | | | | | | Now matches the Gmail behavior where we set the text size to 80% and then scale up. Also refactored the scale up portion into AbstractConversationViewFragment. Fixes b/9176401. Change-Id: I902b399f96d4b6e8a7dd2450108e6c8bf5e24ab1
* Add margins to email messages.Andrew Sapperstein2013-05-281-1/+23
| | | | | | | | Previously we did not add any margins in SecureConversationViewFragment. That is now fixed. Fixes b/9095450. Change-Id: I3343ebe2d32d4800296c2bcdcc87a9444103eceb
* Always show folder labels in Email.Andrew Sapperstein2013-05-231-1/+1
| | | | | | | | Now that we can actually put the current folder in, just show the label always. Fixes b/8488727. Change-Id: I1bf139baebc81c5708950157f60ebf6d9d1d7247
* Use an ObjectCursorLoader for MessagesPaul Westbrook2013-05-091-2/+3
| | | | | Bug: 8763530 Change-Id: I0a70c92dd52eff5d10c067fdb78b371bfd8178ac
* CleanupScott Kennedy2013-04-051-1/+0
| | | | Change-Id: Iee8abf75639450d469632e43fe0e102b687558db
* better scrolling in JS-less single-message conversation viewAndy Huang2013-03-211-4/+8
| | | | | | | | | | Allow simultaneous horizontal and vertical scrolling when the WebView is embedded in a ScrollView by supplementally sending touch events to the ScrollView when it normally wants to intercept AND the WebView handled the touch. Touch interception happens as normal on any other child. Bug: 8368615 Change-Id: I21f8721c673fd8146992b933d0c966d59c376795
* fix NPEAndy Huang2013-03-151-1/+0
| | | | Change-Id: I1ceb915ec59009762eccf184fb2f31cb35a1b715
* hide rendering reporting in Email2Andy Huang2013-03-151-0/+5
| | | | Change-Id: I6fc750a0369a9396fc00f4e5fe4ffac61831d5b4
* clean up secure CVFAndy Huang2013-03-151-49/+37
| | | | | | no functional changes yet. Change-Id: I9bf895aeb1b41de88002d5597d802e4c782fb0fd
* Add way to report good/bad emails.Alice Yang2013-03-141-3/+8
| | | | | | | | Added option in overflow menu to report an email as good/bad. Currently forwards to the mailing list and prepopulate the compose text with debug info. Change-Id: Ieb468d8a13dc929dff808a3020f3d52ae7f85b07
* Don't set subject on action bar in ConversationViewFragment.Yu Ping Hu2013-03-071-4/+0
| | | | | | | | It's unnecessary since the subject is set elsewhere, and it sometimes results in the wrong subject to show. BUG: 8282128 Change-Id: I54b4390f3279330db7ff95e507c13cf2e25b87f9
* Suppress automatic update to mark read/viewed when marking unreadVikram Aggarwal2013-02-051-3/+3
| | | | | | | | | | | | | | | | | | | Every conversation shown in the CVF is marked read, because it has been read by the user. When we mark messages unread, there is a race between the marking unread, and this automatic marking read. In rare cases, the cache can get the operations in reverse order: 1. User clicks on message 2. User marks unread (in a hurry) 3. Message is shown 4. CVF.onConversationSeen() is called, which 5.... marks message read and viewed. The easiest fix is to suppress marking the message read when markUnread() is called. Bug: 7326925 Mark Unread Non-Functional When Viewing Message Change-Id: If57f674f39b5dbf115a468fcd17656f9715394ed
* Don't update subject in onUserVisibleHintChangedVikram Aggarwal2013-01-171-7/+5
| | | | | | | | | | | | | | | 1. Changing the subject in onUserVisibleHintChanged is overkill. The actionbar subject is changed by the controller, and the conversation view subject should be changed as a result of updates to the current conversation. 2. Only perform the operations in onUserVisibleHintChanged if the fragment is visible to the user. Bug: 8025544 Call to setSubject in ConversationViewFragment.onLoadFinished Change-Id: I71bd78641f20635709bc1dafb5c37942c249effe
* Allow veiled address pattern to be updated through settingsVikram Aggarwal2013-01-091-0/+3
| | | | Change-Id: Ibbd412308283fd2c0cae0abbec0a43be1db1b3ad
* use parcel intermediate format for ConversationInfoAndy Huang2012-12-061-0/+267
Instead of passing ConversationInfo/MessageInfo around as Strings from provider->UI, use Cursor's blob functionality where the blob is the marshalled form of the parceled Info objects. This should be a acceptable use of Parcel, given that we are not persisting this form, and it only exists to facilitate provider/UI communication through the generic Cursor interface. Parcel blobs are fast, well-tested, and do not require input sanitization. Traceview testing reveals pretty good gains in Conversation construction (29% faster on Nexus 7), which is most of the work in getView(). Change-Id: I05451fba2201ca2f2c3ee76c80fb356c36e8ccad