Commit Graph

9923 Commits

Author SHA1 Message Date
Tony Mantler
34c2e1619d Fix FLAG_OAUTH usage
Also fix some excessive checking of incoming/outgoing settings fragments

b/14969455 b/14971192

Change-Id: I6cf83aa59d381d3bbfc33e0d4a6e133c1814ba69
2014-05-14 16:31:04 -07:00
Tony Mantler
82a207132b Move account backup/restore to userdata in AccountManager
Change-Id: Iea9f2a1b1f2d87e07d63cbb1df5a0d6355ea4031
2014-05-14 15:15:49 -07:00
Tony Mantler
97ddf6e5fa Merge "Fix URI comparison" into ub-mail-master 2014-05-14 18:34:33 +00:00
Tony Mantler
e8a3c14f28 Fix URI comparison
b/14914981

The framework may make copies of the URI objects before they're passed in,
so we should use .equals() instead of pointer equality.

Change-Id: Ia443e96c81d53829ac6cfce70cebc098861f1c78
2014-05-14 11:32:20 -07:00
Tony Mantler
65e64c65b5 Merge "Fix projection columns, begin removing another unused field" into ub-mail-master 2014-05-13 22:45:25 +00:00
Tony Mantler
8518665a04 Fix projection columns, begin removing another unused field
Change-Id: I89126dba47ed6e78c870d458c4f286a37f763a66
2014-05-13 15:41:39 -07:00
Anthony Lee
825aa02a6f Merge "Introduction of DownloadQueue and associated tests." into ub-mail-master 2014-05-13 18:28:28 +00:00
Tony Mantler
2f97a7c658 Clean up unused code and warnings in Account
Change-Id: I40475eb6c8afa6b7b28fd143b9ad4fd268ff4657
2014-05-13 10:46:30 -07:00
Baligh Uddin
f1cf4f29de am 1cf672ea: (-s ours) Import translations. DO NOT MERGE
* commit '1cf672eafd94262c3e9cc08a5d5e99b31d47001d':
  Import translations. DO NOT MERGE
2014-05-13 16:03:03 +00:00
Baligh Uddin
56ef888532 Merge "Import translations. DO NOT MERGE" into ub-mail-master 2014-05-13 15:59:49 +00:00
Anthony Lee
0e49862711 Introduction of DownloadQueue and associated tests.
Also a bit of cleanup around log tags and DownloadRequest.

Change-Id: I33221f099ed691e5258e1741cf0a63381404f520
2014-05-12 13:50:50 -07:00
Baligh Uddin
f4155cc0a8 Import translations. DO NOT MERGE
Change-Id: I66c8a1d091bdc2ca7c4b9d967e0a03dc6efcf35d
Auto-generated-cl: translation import
2014-05-12 13:26:55 -07:00
Baligh Uddin
1cf672eafd Import translations. DO NOT MERGE
Change-Id: If70ec53e84a062cc11b4d967c182fecf1f0d19bd
Auto-generated-cl: translation import
2014-05-12 13:25:19 -07:00
Anthony Lee
bca4f9fcfb Service intent's package matches the content provider's.
b/14596165. When setting the package of the service intent,
query the app that implements the Email content authority since
that is the same app that should handle the intent.

Change-Id: I29a34a056516edda78acb83b9c89547ca0dc5ca1
2014-05-11 00:47:44 -07:00
Tony Mantler
d222c6b817 Merge "Fetch email bodies using ContentResolver#openInputStream" into ub-mail-master 2014-05-09 17:50:04 +00:00
Tony Mantler
2f288864b6 Fetch email bodies using ContentResolver#openInputStream
This brings us further along the path to storing email bodies
outside of the database.

Change-Id: I96296114ade0d561df724878ed92999306bcd176
2014-05-08 15:50:57 -07:00
Tony Mantler
2965d6ec31 am 8989dfa5: Fix cancel handling in account settings screens
* commit '8989dfa5e7213a42362b3bbdf865b46dab5a5012':
  Fix cancel handling in account settings screens
2014-05-08 21:32:21 +00:00
Tony Mantler
8989dfa5e7 Fix cancel handling in account settings screens
- Don't loop on the confirmation dialog
- Do a deep copy of the initial hostauth state
- Save the initial hostauth state on configuration changes
- Collect the user input before comparing the old state with the new

b/14285245

Change-Id: Ibc033fac525be2a4cb03c6a0d1e92254a2236b4c
(cherry picked from commit 294593c5f5)
2014-05-08 21:27:23 +00:00
Baligh Uddin
7366516bb0 am 92fdb3d3: (-s ours) Import translations. DO NOT MERGE
* commit '92fdb3d39a9385238a55753b8e0c8ff7a461d420':
  Import translations. DO NOT MERGE
2014-05-08 14:51:59 +00:00
Baligh Uddin
32df0c2186 Merge "Import translations. DO NOT MERGE" into ub-mail-master 2014-05-08 14:48:06 +00:00
Baligh Uddin
a056d07865 Import translations. DO NOT MERGE
Change-Id: Icff42ecde2c9e838c17bc42343591c1ce779e2aa
Auto-generated-cl: translation import
2014-05-07 19:35:13 -07:00
Baligh Uddin
92fdb3d39a Import translations. DO NOT MERGE
Change-Id: Ib2ccf8152e545f20a789a9633774b47a14824bc3
Auto-generated-cl: translation import
2014-05-07 19:33:14 -07:00
James Lemieux
6825796063 Create separate thread pool for EmailMessageCursor
This avoids a potential thread starvation issue if all running threads
in the default parallel executor are stalled waiting to read from the
threads created here.

Change-Id: I32f030b3e7ff3d8f69453ae5946704efb19ee25f
2014-05-07 16:40:34 -07:00
Tony Mantler
4f1014fa10 Merge "Clean up logging" into ub-mail-master 2014-05-06 18:26:41 +00:00
Tony Mantler
84e010a463 Clean up logging
b/14590064

Change-Id: Ib841ebecae339690c143eaf356eced58d9ac5372
2014-05-06 11:22:10 -07:00
Tony Mantler
15c373c9ac Merge "Handle attachment filenames with % characters" into ub-mail-master 2014-05-06 18:05:05 +00:00
Tony Mantler
9a80ffce14 Handle attachment filenames with % characters
b/14571903

Change-Id: I3296bebfb4c6902750c68c9d3fb79ce644dbb137
2014-05-06 10:26:45 -07:00
Baligh Uddin
706c5edcda am 28197113: (-s ours) Merge "Import translations. DO NOT MERGE" into ub-mail-algol
* commit '28197113d08c848e84fdf6e6e26286b0c279135d':
  Import translations. DO NOT MERGE
2014-05-06 14:58:09 +00:00
Baligh Uddin
28197113d0 Merge "Import translations. DO NOT MERGE" into ub-mail-algol 2014-05-06 14:55:44 +00:00
Baligh Uddin
5f4c3ca7ef Merge "Import translations. DO NOT MERGE" into ub-mail-master 2014-05-06 14:55:39 +00:00
Tony Mantler
ddfdb5d11d Merge "Null check EmailServiceInfo" into ub-mail-master 2014-05-05 23:07:13 +00:00
Baligh Uddin
c7653055e4 Import translations. DO NOT MERGE
Change-Id: I894c8fa01362d936b8af10b60364905359291cd0
Auto-generated-cl: translation import
2014-05-05 14:17:57 -07:00
Baligh Uddin
b0085c774a Import translations. DO NOT MERGE
Change-Id: Id701dd23f377d5cb0f05c65e5bd608b7d20b2468
Auto-generated-cl: translation import
2014-05-05 14:15:53 -07:00
Tony Mantler
91e8e6f709 Null check EmailServiceInfo
b/14567915

Change-Id: I4780835a7f195f1a825a1538f9f1b939e2be4214
2014-05-05 13:59:39 -07:00
Tony Mantler
aab514c942 Catch empty mime type and substitute application/octet-stream
b/14564897

Change-Id: Id91dd18ef8b3fab449eb178bde73303107b78590
2014-05-05 13:26:22 -07:00
Martin Hibdon
b5713fb731 am 81f9a57a: Fix some STOPSHIP logging
* commit '81f9a57a655fe842ddd86b14afe75bcd575edb81':
  Fix some STOPSHIP logging
2014-05-05 20:19:12 +00:00
Tony Mantler
b40d132935 Merge "Add dummy AndroidManifest.xml" into ub-mail-master 2014-05-05 20:15:23 +00:00
Martin Hibdon
81f9a57a65 Fix some STOPSHIP logging
b/14564870

Change-Id: I9365013eacde23178578b45f728713f80417bc7a
2014-05-05 13:04:19 -07:00
Tony Mantler
a77f47b085 Add dummy AndroidManifest.xml
Change-Id: I06380a798a7700291c9e479ee3f6158084f9349f
2014-05-05 11:35:43 -07:00
Tony Mantler
4db2d1cf74 Escape string values passed into SQL
b/14562987

Change-Id: Ibefd8d1d7418fffe4467abdae0cf978228d303a0
2014-05-05 10:51:44 -07:00
Tony Mantler
32471fc22e Catch exceptions when DownloadManager is disabled
b/14562210

Change-Id: If3f2da034e8492de049bc3bcac910a033c47d600
2014-05-05 10:23:12 -07:00
Tony Mantler
564a5343cc Merge "Don't allow empty or null filenames" into ub-mail-master 2014-05-05 16:14:56 +00:00
Tony Mantler
d0b54a2948 Don't allow empty or null filenames
b/14500106

Change-Id: I519e4a0fe392c3bdbb84f1ccbdea89f07b9c1426
2014-05-02 16:42:46 -07:00
Jay Shrauner
2fc13087e7 Parse abbreviated date fields
Add support for abbreviated dates with no timestamp (eg, "2009-01-02") to
parseEmailDateTimeToMillis.

Bug:14496986
Change-Id: Ifc77cb75fd9e23536b48c8f6ecefc0e2e8f1cc2c
2014-05-02 16:17:17 -07:00
Tony Mantler
f21e6a8983 Merge "Don't allow non-constant format strings" into ub-mail-master 2014-05-02 17:28:49 +00:00
Tony Mantler
d786b90cb5 Don't allow non-constant format strings
Also clean up warnings and delete unused code

b/14488939

Change-Id: I0fc552b8437958331c30f2ddd05ae33c0010e79f
2014-05-02 10:05:27 -07:00
Baligh Uddin
e5e0028d74 am 66e638ff: (-s ours) Import translations. DO NOT MERGE
* commit '66e638ffca80b57dc732853ee6b9736f5cbd61b9':
  Import translations. DO NOT MERGE
2014-05-02 02:25:02 +00:00
Baligh Uddin
66e638ffca Import translations. DO NOT MERGE
Bug: 14472966
Change-Id: I6263fd44e59d573496092229e9442f5021c8b6d4
Auto-generated-cl: translation import
2014-05-02 02:20:58 +00:00
Tony Mantler
f837c474a4 resolved conflicts for merge of 0d7c7091 to ub-mail-master
Change-Id: Id754089f16146daf0c07f77208d55c2406c997c5
2014-05-01 15:27:21 -07:00
Tony Mantler
0d7c709125 Always return a valid Uri for account inbox
Also don't return virtual folders unless real folders exist

b/14319452

Change-Id: Id5f62f5ccc4d5488ae467df741b0598a158ceb81
2014-05-01 15:05:15 -07:00