Commit Graph

9168 Commits

Author SHA1 Message Date
Martin Hibdon f7078466c3 Always fix parent keys on startup of email
b/11174975
There are already several database fixing steps that
occur when the database is opened, add another one
to correct uninitialzed mailbox parent keys.
This is because we use a two pass system for adding
mailbox rows, first to insert the rows, and second to
assign parentKeys to child rows. We need two passes
because we may insert a child row before its parent,
so the parent's rowId is unavailble. But if the process
dies before the second step is complete we'll be in
an inconsistent state.

Change-Id: Ifaeeaca7e82c1e99656033bc1a9f25d7acb67517
2013-10-11 15:18:41 -07:00
Yu Ping Hu 60e4e9cbb0 am a95fe8fc: Merge "Update provider configuration for BT domains." into jb-ub-mail-ur10
* commit 'a95fe8fc0b034ad28bc3951586576fc230d22aa2':
  Update provider configuration for BT domains.
2013-10-11 14:56:16 -07:00
Yu Ping Hu a95fe8fc0b Merge "Update provider configuration for BT domains." into jb-ub-mail-ur10 2013-10-11 21:54:18 +00:00
Tony Mantler a86a6178a6 am ec2b661a: Merge "The ServiceMap caches locale-dependent strings. Destroy it on configuration changes." into jb-ub-mail-ur10
* commit 'ec2b661acb76e998f64695815e7d88b6cba87f51':
  The ServiceMap caches locale-dependent strings. Destroy it on configuration changes.
2013-10-11 14:39:01 -07:00
Tony Mantler 87138a22f9 am 03dc3f22: Combined account name is locale-dependent. Notify on locale changes
* commit '03dc3f22d151d0cddc6487429786a708de813d67':
  Combined account name is locale-dependent. Notify on locale changes
2013-10-11 14:39:00 -07:00
Tony Mantler ec2b661acb Merge "The ServiceMap caches locale-dependent strings. Destroy it on configuration changes." into jb-ub-mail-ur10 2013-10-11 21:37:44 +00:00
Tony Mantler 03dc3f22d1 Combined account name is locale-dependent. Notify on locale changes
b/10784192

Change-Id: I2a9783f19709ff5cf0ab5a4a14ab1ad60b71d821
2013-10-11 14:20:03 -07:00
Tony Mantler 3a8c86b182 The ServiceMap caches locale-dependent strings. Destroy it on configuration changes.
b/10785115

Change-Id: I39df8a002cafdbaf4d41c9916d62a79a03d48804
2013-10-11 13:18:36 -07:00
Yu Ping Hu 3794d1f9f7 Update provider configuration for BT domains.
Bug: 11183952
Change-Id: I2f6116cf288f960448efa9ac66352210b042031b
2013-10-11 09:18:56 -07:00
Andrew Sapperstein 7b57eee6f7 Add override string.
Change-Id: I10d12a7e66765c0e3cdce5b45eb048c23cd39d63
2013-10-10 18:22:25 -07:00
Yu Ping Hu a58b71a6ae am a5312d5b: Increment Email version.
* commit 'a5312d5b977064eaa6d683d338effa9e859858ed':
  Increment Email version.
2013-10-10 18:15:33 -07:00
Yu Ping Hu a5312d5b97 Increment Email version.
Change-Id: Id1aea84a85feb42540217cb7b48011db08b95a3c
2013-10-10 18:01:49 -07:00
Martin Hibdon 4e19b9499e am ed4e1c50: Merge "Disable sync settings controls for drafts folders" into jb-ub-mail-ur10
* commit 'ed4e1c503942eb8e809782d762be519b70d6f89a':
  Disable sync settings controls for drafts folders
2013-10-10 16:43:06 -07:00
Martin Hibdon ed4e1c5039 Merge "Disable sync settings controls for drafts folders" into jb-ub-mail-ur10 2013-10-10 23:40:19 +00:00
Martin Hibdon cb30243fe1 Disable sync settings controls for drafts folders
b/11158759
Make the default sync setting for drafts folders 0
(never automatically sync), and disable the settings
control so that it cannot be changed.
Also add a db upgrade step to set any existing drafts
folders to not sync, and clean up any Exchange synced
draft messages.

Change-Id: I256bde231d722089ef2a623482f570a20eccf1de
2013-10-10 16:29:42 -07:00
Tony Mantler 2e42a9d827 am 11fb2d16: Merge "Use the correct widget provider class" into jb-ub-mail-ur10
* commit '11fb2d161ecbde53ca395ef65c60c79adf273bb8':
  Use the correct widget provider class
2013-10-10 14:25:47 -07:00
Tony Mantler 11fb2d161e Merge "Use the correct widget provider class" into jb-ub-mail-ur10 2013-10-10 21:06:42 +00:00
Martin Hibdon ed966f4fdd am 9e608aa5: Update logging in AttachmentDownloadService
* commit '9e608aa5a1c53355d15fe23e0c1c32091b124b4d':
  Update logging in AttachmentDownloadService
2013-10-10 13:53:28 -07:00
Martin Hibdon 9e608aa5a1 Update logging in AttachmentDownloadService
This is related to b/11081672.
The logging needed to track this down was tied to
MailActivityEmail.DEBUG, which is tied to a setting that
no longer exists.

Change-Id: I0a23508832ead6ab3cc613a82e0831986b0af49b
2013-10-10 12:41:23 -07:00
Tony Mantler e96f16c0ae am d6ba4cfd: Merge "Re-add ic_launcher_email mipmaps" into jb-ub-mail-ur10
* commit 'd6ba4cfd008cc77e5ed35f2a9524a40069a851e0':
  Re-add ic_launcher_email mipmaps
2013-10-10 11:55:59 -07:00
Tony Mantler d6ba4cfd00 Merge "Re-add ic_launcher_email mipmaps" into jb-ub-mail-ur10 2013-10-10 18:53:20 +00:00
Tony Mantler a77774300b am 81179531: Merge "Add null check before passing from address to Rfc822Tokenizer" into jb-ub-mail-ur10
* commit '8117953140719217d96c4e2c77704db6ac9c16aa':
  Add null check before passing from address to Rfc822Tokenizer
2013-10-10 11:47:48 -07:00
Tony Mantler 8117953140 Merge "Add null check before passing from address to Rfc822Tokenizer" into jb-ub-mail-ur10 2013-10-10 18:45:49 +00:00
Martin Hibdon a9a01655bf am 03f56f2c: Merge "Allow multiple mailboxes to be synced in a single request" into jb-ub-mail-ur10
* commit '03f56f2c1a052db3abff8ad624ecf8eae16ceea3':
  Allow multiple mailboxes to be synced in a single request
2013-10-10 11:32:35 -07:00
Martin Hibdon 03f56f2c1a Merge "Allow multiple mailboxes to be synced in a single request" into jb-ub-mail-ur10 2013-10-10 18:31:17 +00:00
Tony Mantler b5111ff41c Re-add ic_launcher_email mipmaps
The 1x1 widgets created with Email1 reference this name directly
and I can't find any way of upgrading them. (They're technically
shortcuts, not even proper widgets)

b/11155414

Change-Id: Ie2f0eeda05544a8731f6747692bdf7d9a46c805f
2013-10-10 10:42:32 -07:00
Tony Mantler 22f0c87d5f Add null check before passing from address to Rfc822Tokenizer
b/11167816

Change-Id: I13671d953b067ecc5becf160eab52be30e4f1354
2013-10-10 10:35:58 -07:00
Martin Hibdon 56aba8d843 Allow multiple mailboxes to be synced in a single request
b/11103878

Change-Id: Ic6abf51457fe94e89fe51b461da4371f50e0fe86
2013-10-10 09:30:31 -07:00
Tony Mantler 3cd2e3cd32 am 5da03b90: Merge "Temporary workaround for ConversationCursor missing updates" into jb-ub-mail-ur10
* commit '5da03b90e2f313cebdb802cd3795db20b9a970ea':
  Temporary workaround for ConversationCursor missing updates
2013-10-10 09:23:08 -07:00
Tony Mantler 5da03b90e2 Merge "Temporary workaround for ConversationCursor missing updates" into jb-ub-mail-ur10 2013-10-10 16:20:00 +00:00
Yu Ping Hu e14d999230 am ccfaebef: Merge "Add remaining xxhdpi icons." into jb-ub-mail-ur10
* commit 'ccfaebef23315870a97c207b9cfbab020007e4a9':
  Add remaining xxhdpi icons.
2013-10-09 21:25:38 -07:00
Yu Ping Hu ccfaebef23 Merge "Add remaining xxhdpi icons." into jb-ub-mail-ur10 2013-10-10 04:04:12 +00:00
Yu Ping Hu a0b1052964 Add remaining xxhdpi icons.
Bug: 10901057
Change-Id: Ibf0157be014f9fb2459586bf854b29b45a707652
2013-10-09 20:31:16 -07:00
Paul Sliwowski 64774af688 am b5341fac: Merge "Fix bugs when screen is rotated when creating account." into jb-ub-mail-ur10
* commit 'b5341fac103a2ab15afb8f9642372ab6e19b79ee':
  Fix bugs when screen is rotated when creating account.
2013-10-09 20:03:19 -07:00
Paul Sliwowski b5341fac10 Merge "Fix bugs when screen is rotated when creating account." into jb-ub-mail-ur10 2013-10-10 03:00:43 +00:00
Paul Sliwowski d7ed294dd1 Fix bugs when screen is rotated when creating account.
Bug: 11136893
Change-Id: I1d21c1f427370a2de57d89be802cac253ad33bd5
2013-10-09 19:49:29 -07:00
Yu Ping Hu 06de3d3c61 am 204e17f4: Merge "Add a section for additional uses declarations." into jb-ub-mail-ur10
* commit '204e17f45d1fd1dc21aa5e3ebb45659e1029c296':
  Add a section for additional uses declarations.
2013-10-09 16:59:21 -07:00
Yu Ping Hu 204e17f45d Merge "Add a section for additional uses declarations." into jb-ub-mail-ur10 2013-10-09 23:57:16 +00:00
Yu Ping Hu ff5c16e05c Add a section for additional uses declarations.
Bug: 11149503
Change-Id: Id89e245468bc24c745f6167ee281c0301b945348
2013-10-09 16:43:05 -07:00
Martin Hibdon 0546e214d8 am 7c032173: Add a retry backoff/limit policy to attachment download
* commit '7c03217316b21d59a00cf1abed093470e8004144':
  Add a retry backoff/limit policy to attachment download
2013-10-09 16:35:04 -07:00
Martin Hibdon 7c03217316 Add a retry backoff/limit policy to attachment download
b/11081672

Prior to this, any time the AttachmentDownloadService
got a CONNECTION_ERROR, it would just instantly retry,
without any limit on the number of tries. This is bad
if the server is in a funny state, we'll just keep spamming
it with multiple connection attempts per second. Also,
this kills the client device's battery and responsiveness.

Now, it will retry instantly five times, and then retry on a
10 second delay 5 more times. After that it will give up.

Even if it gives up, if the user visits an email with an
attachment, or taps on an attachment to expand it, we'll
start the process over. So we shouldn't have permanent
apparently data loss, even if we fail on the first 10 tries.

I'm not certain that this is the best backoff/limit policy,
maybe we should add a delay after even the first connection
error. But I'm hesitant to change this at this point, it's
possible that something is relying on this behavior and
we don't have a lot of soak time left.

Change-Id: I53d75d5d214ccca887a89cf65b799fe640cc9bc5
2013-10-09 16:32:08 -07:00
Tony Mantler e12b22148f Temporary workaround for ConversationCursor missing updates
Launch a 2-second delayed message to send a second notification on the folder change update

b/11027351

Change-Id: Ia0a22be79f4a74c6857517cc21e2313cea9cc0e9
2013-10-09 16:15:29 -07:00
Tony Mantler 37aa460ef7 Use the correct widget provider class
b/11043157

Change-Id: Icb4e6408535ca4cc055581ca7e8bd74c83aeecdf
2013-10-09 15:52:16 -07:00
Tony Mantler 5a322ac91c am 4b32e543: Merge "Update widgets on provider instantiation." into jb-ub-mail-ur10
* commit '4b32e54309746fa053c5df9beed75174097dc672':
  Update widgets on provider instantiation.
2013-10-09 13:29:20 -07:00
Tony Mantler 4b32e54309 Merge "Update widgets on provider instantiation." into jb-ub-mail-ur10 2013-10-09 20:27:42 +00:00
Tony Mantler dd1569d007 am 06009f28: Merge "Parse "From" addresses when constructing ConversationInfo" into jb-ub-mail-ur10
* commit '06009f28f0ae397a5ab14638df44580b8bde2213':
  Parse "From" addresses when constructing ConversationInfo
2013-10-09 10:36:37 -07:00
Tony Mantler 06009f28f0 Merge "Parse "From" addresses when constructing ConversationInfo" into jb-ub-mail-ur10 2013-10-09 17:33:48 +00:00
Tony Mantler 73379a2729 Parse "From" addresses when constructing ConversationInfo
Fixes sender image tiles

b/11120430

Change-Id: Ie53e2a01cfffd70318fad7cd1cbc2565f1bbb87b
2013-10-09 10:29:36 -07:00
Martin Hibdon 9959344a77 am f9a14a18: Merge "Always close the connection after trying to load attachments" into jb-ub-mail-ur10
* commit 'f9a14a184a30b4927e2ce2033bed19cbf19c196c':
  Always close the connection after trying to load attachments
2013-10-08 21:21:41 -07:00
Martin Hibdon f9a14a184a Merge "Always close the connection after trying to load attachments" into jb-ub-mail-ur10 2013-10-09 02:45:11 +00:00