At this point, *all* MessageListener callbacks should have their
work routed through the handler for deeper processing (especially
anything that affects the lists) to be in the UI thread only.
Also fixed a minor regression introduced in CL 148096 (on
configurations with a single account, the inbox was not
automatically preopening - this affected desktop shortcuts
as well.)
BUG=1812798
Automated import of CL 148256
Merge commit 'c98f9775ad2b01f1692f96f14faacaca4ef3c1cf'
* commit 'c98f9775ad2b01f1692f96f14faacaca4ef3c1cf':
AI 148255: Don't show "Outgoing Settings" preference when sender does not
Merge commit '114026bf3fdd3a5f54a35030d6e071160e8992f8'
* commit '114026bf3fdd3a5f54a35030d6e071160e8992f8':
AI 148230: Allow stores to indicate if they support server-side copying of sent
Merge commit '3a0985b83a9856da3639e5a28e1acd0f8db37246'
* commit '3a0985b83a9856da3639e5a28e1acd0f8db37246':
AI 148216: Provide UI for fixed sync window sizes, as required by EAS.
Merge commit '0fc66ee3664ca2c92d79e6fd976962b99a15656f'
* commit '0fc66ee3664ca2c92d79e6fd976962b99a15656f':
AI 148215: Provide a better way for stores to get their callbacks, since they
Merge commit '503d4c52370bbe39a7c7b045d63db0f329190ed6'
* commit '503d4c52370bbe39a7c7b045d63db0f329190ed6':
AI 148204: Encapsulate a requirement for some remote stores, that need to preload
mail into the "Sent" folder, thus eliminating the need to perform a 2nd
upload into the server's Sent folder. IMAP and POP3 do not support
this (although IMAP could when it recognizes Gmail IMAP servers.)
BUG=1807499
Automated import of CL 148230
message structures before fetching the message body. Code for IMAP &
POP3 is unaffected, but remote stores can override
requireStructurePrefetch() in order to trigger the new behavior.
BUG=1807499
Automated import of CL 148204
Merge commit '60ab49eddcf8f7f1fd7c805739d7035eca787107'
* commit '60ab49eddcf8f7f1fd7c805739d7035eca787107':
AI 148145: Remove the account-based storage of store persistent data, and instead
combine it with the same code that handles folder persistent data (in
the database). The schema is really simple; Rows with a folder id of
-1 are store data. This also adds the ability to use keys to store
multiple values, instead of a single string per account. Added/updated
unit tests.
3rd party stores will need slight code changes because the persistent
callbacks now accept keys.
BUG=1807499
Automated import of CL 148145
being strict enough about decoupling the MessageListener from
updates to the various lists that should only happen in the UI
thread.
BUG=1812798
Automated import of CL 148096
access mMessageContentView.
This is a brute-force solution, and I have also left TODO notes
mentioning that it might make more sense (long term) to use the
existing handler message mechanism.
BUG=1812798
Automated import of CL 148095
Folder.getVisibleLimit(), which used local copies of the data from the
DB. If there were two Folder objects associated with a single actual
folder, updating one wouldn't be reflected in the others.
BUG=1812798
Automated import of CL 148027
(e.g. EAS) can limit itself to n (usually 1) accounts per device.
The UI for this is really simple - don't show the EAS button when the
limit is reached. More work would be required in
AccountSetupAccountType.java in order to do a more sophisticated UI
(e.g. show the button but pop a toast if the limit is reached.)
BUG=1740626
Automated import of CL 148019
to the set that are stored in their own columns (and thus can
be quickly selected from). Add code to migrate old style
flags into new flags. Add tests.
BUG=1786939
Automated import of CL 148002
Merge commit 'b91fe4de91d617a2ddc96082cd06651946f6b454'
* commit 'b91fe4de91d617a2ddc96082cd06651946f6b454':
AI 147868: Fix CL 146360 which didn't make the changes persistent. Changed
Merge commit '0f8a57891fd4fa19fba602249fedd0587177b2f1'
* commit '0f8a57891fd4fa19fba602249fedd0587177b2f1':
AI 147866: To better support remote stores that write back persistent data
Merge commit '085757aa51b6ebdebd10e485c6c54458d5130874'
* commit '085757aa51b6ebdebd10e485c6c54458d5130874':
AI 147839: In checkMail(), do a listFolders() before the existing sync...()
Merge commit '4fca6f3dba633a0f0ee7c91041462ac7fd2a7f78'
* commit '4fca6f3dba633a0f0ee7c91041462ac7fd2a7f78':
AI 147765: Fix concurrency bugs in MessagingController, in the collections
Merge commit 'eeaad585cd95acd5e5355ea02bb4b79715c2f9bc'
* commit 'eeaad585cd95acd5e5355ea02bb4b79715c2f9bc':
AI 147730: 1. Create an API by which a Store can specify its own custom