Commit Graph

139 Commits

Author SHA1 Message Date
Andy Stadler
de312d60e9 Merge branch 'readonly-p4-donut' into donut 2009-05-05 16:38:11 -07:00
Andy Stadler
235609d04e AI 148334: Provide a new entry in MessageUpdateCallbacks by which the store can
indicate that the message of interest no longer exists.  This is used
  in remoteFolder.copyMessages, for example because the message was
  already deleted by another client.
  BUG=1807499

Automated import of CL 148334
2009-05-05 16:36:31 -07:00
Andy Stadler
9fca1305f7 Merge branch 'readonly-p4-donut' into donut 2009-05-05 16:34:13 -07:00
Andy Stadler
5293030ba0 AI 148333: Evidence from failures, and inspection of source, leads me to believe
that SharedPreferences has some non-thread-safe paths.  As a quick,
  brute-force workaround, I'm putting a global lock around our use of it.
  This is a bit inefficient, but cases of multiple threads writing to it
  should be very rare.
  Note, we don't have an explicit test for this (I will think about
  finding a way to write one), but the evidence of this failure is that
  after some amount of activity in the Email app, we see corruption in
  the string mSenderUri.
  BUG=1822859

Automated import of CL 148333
2009-05-05 16:32:33 -07:00
Andy Stadler
51249c25c5 Merge branch 'readonly-p4-donut' into donut 2009-05-05 10:29:56 -07:00
Andy Stadler
843125b98a AI 148300: Reduce memory waste in getTextFromPart(), and improve error handling.
Fix NPE's in loadMessageForViewBodyAvailable().
  BUG=1831272

Automated import of CL 148300
2009-05-05 10:26:55 -07:00
Andy Stadler
9391a604e4 Merge branch 'readonly-p4-donut' into donut 2009-05-04 10:31:00 -07:00
Andy Stadler
09866af013 AI 148257: Allow preview of any files (mime type */*) by removing
the original filters.  This affects preview, not download.
  This does not preflight the launch at all, it is very simple
  as it simply downloads the attachment and then tries to open it.
  If no activity is found, it uses a toast to say "couldn't do
  that."  A better fix will be to pre-check the mime type to see
  if there are any intent filters to handle it.
  BUG=1650669

Automated import of CL 148257
2009-05-04 10:28:41 -07:00
Andy Stadler
63c1ba8f0d Merge branch 'readonly-p4-donut' into donut 2009-05-04 10:24:48 -07:00
Andy Stadler
62c4a62985 AI 148256: Finish cleaning up the concurrency bugs in FolderMessageList.
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
2009-05-04 10:22:54 -07:00
Andy Stadler
c98f9775ad Merge branch 'readonly-p4-donut' into donut 2009-05-04 10:19:57 -07:00
Andy Stadler
1e2ca965e7 AI 148255: Don't show "Outgoing Settings" preference when sender does not
provide a class for launching the settings editor.
  BUG=1812798

Automated import of CL 148255
2009-05-04 10:17:27 -07:00
Andy Stadler
114026bf3f Merge branch 'readonly-p4-donut' into donut 2009-05-01 16:38:07 -07:00
Andy Stadler
c9f151d4fe AI 148230: Allow stores to indicate if they support server-side copying of sent
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
2009-05-01 16:36:34 -07:00
Andy Stadler
3a0985b83a Merge branch 'readonly-p4-donut' into donut 2009-05-01 15:32:04 -07:00
Andy Stadler
9197f42894 AI 148216: Provide UI for fixed sync window sizes, as required by EAS.
When in fixed sync window size mode, change "load more
  messages" to "refresh".
  BUG=1789913

Automated import of CL 148216
2009-05-01 15:30:33 -07:00
Andy Stadler
0fc66ee366 Merge branch 'readonly-p4-donut' into donut 2009-05-01 15:27:34 -07:00
Andy Stadler
035dfc0859 AI 148215: Provide a better way for stores to get their callbacks, since they
might be null at creation time, and available slightly later.
  BUG=1807499

Automated import of CL 148215
2009-05-01 15:25:32 -07:00
Andy Stadler
503d4c5237 Merge branch 'readonly-p4-donut' into donut 2009-05-01 14:43:01 -07:00
Andy Stadler
9ba72bb00d AI 148204: Encapsulate a requirement for some remote stores, that need to preload
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
2009-05-01 14:40:58 -07:00
Eric Fischer
c31d5eae5b am 9e5757b: AI 148147: Import lots of zh_TW translation changes.
Merge commit '9e5757b5316f88d252b5d80fab1e3964ce19bbdf' into donut

* commit '9e5757b5316f88d252b5d80fab1e3964ce19bbdf':
  AI 148147: Import lots of zh_TW translation changes.
2009-04-30 17:37:33 -07:00
Eric Fischer
9e5757b531 AI 148147: Import lots of zh_TW translation changes.
Automated import of CL 148147
2009-04-30 17:32:16 -07:00
Eric Fischer
3a7175d66b am 6e57772: AI 148026: Update zh_TW translations.
Merge commit '6e5777228bf98403f6ffc80bea5dd420ebec6cd5' into donut

* commit '6e5777228bf98403f6ffc80bea5dd420ebec6cd5':
  AI 148026: Update zh_TW translations.
2009-04-30 17:10:40 -07:00
Andy Stadler
60ab49eddc Merge branch 'readonly-p4-donut' into donut 2009-04-30 16:49:34 -07:00
Eric Fischer
6e5777228b AI 148026: Update zh_TW translations.
Automated import of CL 148026
2009-04-30 16:48:34 -07:00
Andy Stadler
c5c2b96739 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
2009-04-30 16:47:50 -07:00
Andy Stadler
baa4ec5eeb Merge branch 'readonly-p4-donut' into donut 2009-04-30 10:19:18 -07:00
Andy Stadler
d8cbeaf7ae AI 148098: Manual merge CL 148086 to fix additional problems with non-ASCII chars
in address fields.
  BUG=1676634

Automated import of CL 148098
2009-04-30 10:18:00 -07:00
Andy Stadler
5bf09f47ef Merge branch 'readonly-p4-donut' into donut 2009-04-30 10:15:19 -07:00
Andy Stadler
067d0a87fa AI 148097: Fix bug in exchange account setup (actually it only affects
editing existing accounts).  Added simple functional tests for
  Activity UI.
  BUG=1812798

Automated import of CL 148097
2009-04-30 10:14:00 -07:00
Andy Stadler
6543d8846b Merge branch 'readonly-p4-donut' into donut 2009-04-30 10:09:48 -07:00
Andy Stadler
05aba0b4ba AI 148096: Fix multiple concurrency bugs in FolderMessageList, which wasn't
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
2009-04-30 10:08:25 -07:00
Andy Stadler
5f05b099f7 Merge branch 'readonly-p4-donut' into donut 2009-04-30 10:05:33 -07:00
Andy Stadler
c795d8b324 AI 148095: In MessageView, protect the listener callbacks that directly
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
2009-04-30 10:04:06 -07:00
Andy Stadler
31c0296291 Merge branch 'readonly-p4-donut' into donut 2009-04-30 09:40:11 -07:00
Andy Stadler
0cfffc5222 AI 148091: Manual merge CL 148078 which resolves bugs when you have non-ASCII
names in email address fields of MessageCompose.
  BUG=1676657

Automated import of CL 148091
2009-04-30 09:38:30 -07:00
Andy Stadler
972d7e389a Merge branch 'readonly-p4-donut' into donut 2009-04-29 17:18:41 -07:00
Andy Stadler
3c3add638e AI 148027: Fix concurrency failure in Folder.getUnreadMessageCount() and
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
2009-04-29 17:17:14 -07:00
Andy Stadler
694e76814a Merge branch 'readonly-p4-donut' into donut 2009-04-29 17:11:48 -07:00
Andy Stadler
c05afb24bb AI 148019: Add "accountInstanceLimit" to stores.xml so a given type of connection
(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
2009-04-29 17:10:25 -07:00
Andy Stadler
30eb9bb948 Merge branch 'readonly-p4-donut' into donut 2009-04-29 17:08:26 -07:00
Andy Stadler
8264c4fa21 AI 148002: Add X_DOWNLOADED_FULL, X_DOWNLOADED_PARTIAL, and DELETED flags
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
2009-04-29 17:07:03 -07:00
Eric Fischer
06460df68f am 33fabe8: AI 147962: Import updated zh_TW translations.
Merge commit '33fabe840087a06df61c2ef5dc9a2473c6df8014' into donut

* commit '33fabe840087a06df61c2ef5dc9a2473c6df8014':
  AI 147962: Import updated zh_TW translations.
2009-04-28 21:57:25 -07:00
Eric Fischer
cb9120caa8 am 939d53c: AI 147492: Update zh_TW translations.
Merge commit '939d53c7614da6e35c95ee455e34aabac12e2843' into donut

* commit '939d53c7614da6e35c95ee455e34aabac12e2843':
  AI 147492: Update zh_TW translations.
2009-04-28 21:57:25 -07:00
Eric Fischer
33fabe8400 AI 147962: Import updated zh_TW translations.
Automated import of CL 147962
2009-04-28 15:48:40 -07:00
Andy Stadler
b91fe4de91 Merge branch 'readonly-p4-donut' into donut 2009-04-27 17:25:57 -07:00
Andy Stadler
a13aea24a3 AI 147868: Fix CL 146360 which didn't make the changes persistent. Changed
MessagingController to accept and track a Context, instead of the
  unnecessary Application object, which makes this fix more testable.
  BUG=1790798

Automated import of CL 147868
2009-04-27 17:24:41 -07:00
Andy Stadler
0f8a57891f Merge branch 'readonly-p4-donut' into donut 2009-04-27 17:18:43 -07:00
Andy Stadler
de6b2519be AI 147866: To better support remote stores that write back persistent data
or other changes during a delete operation, we need to explicitly
  open the remote trash folder and give it the callbacks.
  BUG=1807499

Automated import of CL 147866
2009-04-27 17:17:22 -07:00
Andy Stadler
085757aa51 Merge branch 'readonly-p4-donut' into donut 2009-04-27 09:19:44 -07:00