* For each attachment we add, check the DB for an existing attachment
with similar metadata (name, mime type, content id, etc.)
* Skip adding them if already held
* Unit tests
Fixes bug http://b/2084704
Merge commit '77c7ce54be778ca93a11069cc152b67d10bcff5f'
* commit '77c7ce54be778ca93a11069cc152b67d10bcff5f':
Do not trust server-provided content type for attachments
Merge commit 'e3e02adac681790ff4bea653e273f7e2b0eea35b' into eclair-mr2-plus-aosp
* commit 'e3e02adac681790ff4bea653e273f7e2b0eea35b':
Do not trust server-provided content type for attachments
Merge commit 'dee4e25320c5154a5626446e1aa37f63ae97c48c' into eclair-mr2
* commit 'dee4e25320c5154a5626446e1aa37f63ae97c48c':
Do not trust server-provided content type for attachments
Merge commit 'dee4e25320c5154a5626446e1aa37f63ae97c48c' into eclair-plus-aosp
* commit 'dee4e25320c5154a5626446e1aa37f63ae97c48c':
Do not trust server-provided content type for attachments
* Fixes a bug that caused some attachments to be labeled with the
wrong content type and thus unable to be opened by local apps.
* When the attachment code was written, MimeTypeMap had very few
entries, so we tried to get the mime type of Exchange attachments
from the stream when the file was read off the server. It turns
out that the server's idea of mime type is unpredictable
* In the meantime, MimeTypeMap has been fleshed out, so we really
do know the type in the vast majority of cases (and including all
common document types)
* The fix is to remove the lines related to reading the mime
type from the attachment stream
* Content type is set (properly) when attachment record is created. See
EasEmailSyncParser.getMimeTypeFromFileName() for details.
Fixes bug http://b/2182955
Change-Id: Iebb3de529df4548327d7112e1dedb3bd448462a4
Merge commit 'a745f9ae44de50208919e5e11b5be163d04648b3' into eclair-mr2-plus-aosp
* commit 'a745f9ae44de50208919e5e11b5be163d04648b3':
Import revised translations. DO NOT MERGE
Merge commit '8a55972c5927e2df8d2261116e78acfdf455a6bc'
* commit '8a55972c5927e2df8d2261116e78acfdf455a6bc':
MessageCompose: corretly set initial mSourceMessageProcessed=true for the cases where there's no source message, to avoid duplicated email addresses on orientation change.
Merge commit '42336c27d3394bb7c2466d6f87981fd5e4b9c915'
* commit '42336c27d3394bb7c2466d6f87981fd5e4b9c915':
Make sure we hold WakeLock during mail sending (fixes#2180551)
Merge commit '82aaf28b63179bcf018eca816ad9b57d79a38079'
* commit '82aaf28b63179bcf018eca816ad9b57d79a38079':
Allow photo changes to be uploaded to Exchange (fixes#2179082)
Merge commit '0daaa3625c8f02ca2c8b79b9c44f8b3938a43388'
* commit '0daaa3625c8f02ca2c8b79b9c44f8b3938a43388':
Make multiselect buttons update when the list state changes
Merge commit '065d5c6292b080f3f0e1507fc70e94a74ee9c9c2'
* commit '065d5c6292b080f3f0e1507fc70e94a74ee9c9c2':
Fix problem with timeouts and sending attachments (#2178288)
* If we close the activity while a requeryList() is pending in the
handler queue, we'll eventually try to operate on a closed cursor
when we get to testMultiple().
* The fix: Return immediately if the cursor is not available.
Fixes bug http://b/2180416
Followup for bug http://b/2149083
Merge commit 'fae9068859f58e7b4ad2926b802370781b9fb609'
* commit 'fae9068859f58e7b4ad2926b802370781b9fb609':
Server validates even though server address is wrong
Merge commit 'd3dfc2b7401c8559a5ae722d9f63d8d0d39f2132'
* commit 'd3dfc2b7401c8559a5ae722d9f63d8d0d39f2132':
Email: exit AsyncTask.onPostExecute() if the result is null or isCancelled().
Merge commit '2bc47f24a4db464f58977ae808f754e2a9191daa' into eclair-mr2-plus-aosp
* commit '2bc47f24a4db464f58977ae808f754e2a9191daa':
MessageView: use FLAG_ACTIVITY_CLEAR_WHEN_TASK_RESET when viewing attachments.
* Relates to a number of bugs related to ANR's and slow behavior
when addressing mail
* Call changeCursor(null) on the Adapter when the activity is destroyed
* Call getCount() in the background thread to force data there rather
than in the UI thread
* If this change is accepted, something equivalent should be
used in the Gmail app as well
* Addresses #2180237 (P1, target Eclair_Sholes) as well as
#2180976 and #2146926, the latter two of which were fixed
with workarounds.
Change-Id: I7503c5fbe091dbc5e784d5a7bebeb3d60226d57d
Merge commit '9865567bfc4f86e7569e97e2114bac62b49b3b16'
* commit '9865567bfc4f86e7569e97e2114bac62b49b3b16':
Fix a crash when you scroll MessageList to junk @ bottom
Merge commit '0abf305d3333802dd6f36f56a6750cdf80fc4b74'
* commit '0abf305d3333802dd6f36f56a6750cdf80fc4b74':
Switch QuickContact presentation from MEDIUM to LARGE.