Commit Graph

9565 Commits

Author SHA1 Message Date
Baligh Uddin
89479d8583 Import translations. DO NOT MERGE
Change-Id: I490206f201dfbe20bc07d6babe89348c8600b521
Auto-generated-cl: translation import
2013-10-30 12:21:01 -07:00
Baligh Uddin
f6ddafe539 Import translations. DO NOT MERGE
Change-Id: Ib8715bd36401ec8959d2eabe87a1110a56576458
Auto-generated-cl: translation import
2013-10-30 12:20:19 -07:00
Yu Ping Hu
5181cd6d4a Add a provider call to get device friendly name.
For now, it sends the device model name as friendly name, in lieu
of actually having a user-supplied friendly name. This is wrong
for at least two reasons:

1) We need to have an actual user-supplied friendly name, but that's
   not easy to find.
2) This really shouldn't be a provider query -- it should be something
   the Exchange can know locally (ideally this is a system preference
   but that's not currently implemented). This workaround just lets
   us have some reasonable value that we can update easily.

Bug: 11161234
Change-Id: If83ad768736de19c9d0e833d1f86a6ce9daf5039
2013-10-30 11:50:41 -07:00
Alice Yang
8e3bd14c27 Merge "Always ask before displaying images for Email" into jb-ub-mail-ur11 2013-10-30 17:58:20 +00:00
Alice Yang
24a489c3de Always ask before displaying images for Email
In Gmail, we are adding a setting that automatically shows external
images instead of asking user first.  Email app should preserve old
behavior.

Bug 11158252

Change-Id: I8b04a1ec31638d756dfee2da8ab2e8178a709416
2013-10-30 10:07:59 -07:00
Alon Albert
3ffffaffe8 am 3e8e5979: Null Protect Account Info
* commit '3e8e59798b718e034da8c250e706e6429c41c2a5':
  Null Protect Account Info
2013-10-29 17:04:46 -07:00
Alon Albert
3e8e59798b Null Protect Account Info
Bug: 11355850
Change-Id: Idb42769b3009787efb4edfe2ffbd65171cd8d8d8
2013-10-29 16:47:24 -07:00
Tony Mantler
9460be06aa Don't initiate fragment transactions from onDestroy()
b/10918608

Change-Id: I649c5f86e5f77fa2ade33345969a44ffebb463b9
2013-10-29 15:44:34 -07:00
Alon Albert
714f883302 am eb280d1b: Merge "Disable Move Actions for POP3 Folders" into jb-ub-mail-ur10
* commit 'eb280d1b457cef098e2d5fe70fb7a83aa1c18121':
  Disable Move Actions for POP3 Folders
2013-10-29 12:38:51 -07:00
Alon Albert
eb280d1b45 Merge "Disable Move Actions for POP3 Folders" into jb-ub-mail-ur10 2013-10-29 19:36:17 +00:00
Alon Albert
ae46818a19 Disable Move Actions for POP3 Folders
Bug: 11311812
Change-Id: I5813281cca76b9b4a373b5b40dbbd1909800f951
2013-10-29 11:06:36 -07:00
Yu Ping Hu
fb1bd1fbcb am edebff6d: Increment Email version.
* commit 'edebff6db30899cef530dbad3e09a1889c1362e5':
  Increment Email version.
2013-10-29 10:01:01 -07:00
Yu Ping Hu
edebff6db3 Increment Email version.
Change-Id: Ia8dc17f106d5bbadcb3fe17d545120712718f56c
2013-10-25 18:21:25 -07:00
Yu Ping Hu
5a93fb16cb am feacaf63: Do not try to load nameless attachments.
* commit 'feacaf6351ad981890fd6dc790added452e3a570':
  Do not try to load nameless attachments.
2013-10-25 14:37:19 -07:00
Yu Ping Hu
feacaf6351 Do not try to load nameless attachments.
Bug: 11347094
Change-Id: I46321755cebe25858c0188f35270d428dfe4a435
2013-10-25 14:21:02 -07:00
Tony Mantler
2c1b6213d1 am 19b89b4b: Merge "Oh account name/email mixups, I\'ve missed you so (no I haven\'t)" into jb-ub-mail-ur10
* commit '19b89b4beaa7b3fb4a23d426e8e6c0210498a270':
  Oh account name/email mixups, I've missed you so (no I haven't)
2013-10-25 13:16:46 -07:00
Tony Mantler
19b89b4bea Merge "Oh account name/email mixups, I've missed you so (no I haven't)" into jb-ub-mail-ur10 2013-10-25 20:14:38 +00:00
Tony Mantler
20367f1589 Oh account name/email mixups, I've missed you so (no I haven't)
b/11341847

Change-Id: Ib3d13e28f742e6cac84795d46121e4be2994abba
2013-10-25 10:02:06 -07:00
Yu Ping Hu
8c50fe285d am 7b7d7d5c: Fix DB upgrade code.
* commit '7b7d7d5cb57c9f0e589b686511eabf3c73f96f00':
  Fix DB upgrade code.
2013-10-25 08:44:50 -07:00
Yu Ping Hu
7b7d7d5cb5 Fix DB upgrade code.
Bug: 11294681
Change-Id: I7333aabbdb9e45154d83386b85398e6d108e5bf2
2013-10-24 19:58:40 -07:00
Yu Ping Hu
1a8a4e8201 am 66f85c87: Merge "Add an additional mailbox key column to message table" into jb-ub-mail-ur10
* commit '66f85c878cebdf2683ae6181086a4d01e769c4e8':
  Add an additional mailbox key column to message table
2013-10-24 16:02:30 -07:00
Yu Ping Hu
66f85c878c Merge "Add an additional mailbox key column to message table" into jb-ub-mail-ur10 2013-10-24 22:59:40 +00:00
Yu Ping Hu
e232140461 am 4b73385e: Merge "Prevent a NPE in ImapService search handling" into jb-ub-mail-ur10
* commit '4b73385ecbdae7857331a2a0b6f71c18ccd94b97':
  Prevent a NPE in ImapService search handling
2013-10-24 15:59:19 -07:00
Yu Ping Hu
4b73385ecb Merge "Prevent a NPE in ImapService search handling" into jb-ub-mail-ur10 2013-10-24 22:56:29 +00:00
Martin Hibdon
7dad461e9e Prevent a NPE in ImapService search handling
b/11339972

Change-Id: Ief34e6e1fd59d029847dc8525a34f20ea9de26b1
2013-10-23 16:44:31 -07:00
Tony Mantler
a250e81410 am 340a29e5: Merge "Restore sender snippet for nested folder teaser." into jb-ub-mail-ur10
* commit '340a29e5fac431fceae6a54fd5b85b87861396ef':
  Restore sender snippet for nested folder teaser.
2013-10-23 15:45:25 -07:00
Tony Mantler
340a29e5fa Merge "Restore sender snippet for nested folder teaser." into jb-ub-mail-ur10 2013-10-23 22:42:39 +00:00
Tony Mantler
7a18b83a4f am e3cf91af: Set parentServerId for IMAP folders to prevent fixup code from resetting parentKey
* commit 'e3cf91af61fed0b35ef8cbb5790c39a143af7470':
  Set parentServerId for IMAP folders to prevent fixup code from resetting parentKey
2013-10-23 15:42:16 -07:00
Martin Hibdon
c86fbb5bcb Add an additional mailbox key column to message table
b/11294681
The problem is that when we try to open an attachment for a
message in search results, it fails. The reason is that part of
loading the attachment, we need to open the remote folder the
message is in. For search results, the message's mailboxKey is
the special fake "search_results" folder, which doesn't actually
exist on the server.
For this change, I've added a new column called "mainMailboxKey".
For search results, this column will be populated with the real
mailbox the message is in. It will be blank for other messages.

This is a quick and low risk fix for this bug, but it's kind
of awkward. We would prefer to do one or both of the following
some time after MR1.

1. Make the "search_results" folder be a virtual folder, the same
way that unread, starred, and other virtual folders are. For these,
there is actually no mailbox row in the database, just some
queries that check various flags in the messages and behave
like folders in the UI. The messages actually still reside in the
real folders.
2. Remove the requirement to open the folder at all to load the
attachment.

Change-Id: I825ab846f78bf8b041a5d1d579260dc5d7b4c522
2013-10-23 14:58:57 -07:00
Tony Mantler
4cece307c4 Restore sender snippet for nested folder teaser.
It's a bit ugly, but it's much better than firing up a new loader for each subfolder.

b/11288044

Change-Id: Ia568f82ccd615ee950944d411c30f9470a55aea9
2013-10-23 14:30:59 -07:00
Tony Mantler
e3cf91af61 Set parentServerId for IMAP folders to prevent fixup code from resetting parentKey
b/11355523

Change-Id: Idbef28cdbbc0eac50552fabeb24e2ec49a6cd042
2013-10-23 14:14:21 -07:00
Tony Mantler
0da6f45fbf am bf39d116: Merge "Coalesce notification updates to avoid spamming the notification tray" into jb-ub-mail-ur10
* commit 'bf39d1166ca775dcfd4977c0d5bb5fbd1a3c8bee':
  Coalesce notification updates to avoid spamming the notification tray
2013-10-22 14:59:43 -07:00
Tony Mantler
bf39d1166c Merge "Coalesce notification updates to avoid spamming the notification tray" into jb-ub-mail-ur10 2013-10-22 21:57:41 +00:00
Justin Ho
fbcdac9bb8 am 3cc5e68b: Merge "Change trigger to allow duplicate messages in search folders" into jb-ub-mail-ur10
* commit '3cc5e68bd2fdb42ae186498c28ed4220ef755caf':
  Change trigger to allow duplicate messages in search folders
2013-10-22 12:36:03 -07:00
Yu Ping Hu
fe83e2939b am b8ef7da6: Merge "Treat updates into non-existent body rows as inserts." into jb-ub-mail-ur10
* commit 'b8ef7da6340b3ce3638e43335a359bd2ca4e521f':
  Treat updates into non-existent body rows as inserts.
2013-10-22 12:36:03 -07:00
Andrew Sapperstein
fa56e0f2e3 Merge "Add datetimepicker to Android.mk." into jb-ub-mail-ur11 2013-10-22 17:14:29 +00:00
Justin Ho
3cc5e68bd2 Merge "Change trigger to allow duplicate messages in search folders" into jb-ub-mail-ur10 2013-10-22 03:34:23 +00:00
Martin Hibdon
ac40b86485 Change trigger to allow duplicate messages in search folders
b/11294681
b/11325976
The problem is that when we get a message as part of a search
result, we'll end up deleting that message from the inbox (or
whatever folder it's currently in). This is because there is
a trigger that deletes messages if a new message is inserted
that has the same serverId and account.

Now, messages with duplicate serverId/account combinations are
allowed if one of the messages is in a SEARCH type folder.
Also, make a change so that when a message comes down in
a search result, we do also copy it into the primary mailbox
that message resides in, we only add it to the SEARCH folder.
Prior to this there was some code that intended to put
the search result message into the regular mailbox it's supposed
to be in, so that we'd have correct state in that message.
Unfortunately, there are several problems with this:
1. The code didn't work, it would make a copy in the regular
folder, and then unconditionally move it to the search folder.
2. If we leave this code in place, putting the message
temporarily into the regular folder still activates the duplicate
message deletion trigger, wiping out the original copy, even with
the update to the trigger.
3. It's unclear that it's even desirable to load the search
result message into the regular folder. It could be a very old
message that would not have been synced before, leaving a large
gap in your inbox, which is confusing and could interfere with
IMAP syncing.

Change-Id: I34671a3b677ab42a3efd0d170a6ebd9246ec493d
2013-10-22 02:26:15 +00:00
Andrew Sapperstein
c2abe3070d Add datetimepicker to Android.mk.
Change-Id: I0f6c3cc96155a9444144182ca48142401ffaacb7
2013-10-21 18:41:30 -07:00
Yu Ping Hu
b8ef7da634 Merge "Treat updates into non-existent body rows as inserts." into jb-ub-mail-ur10 2013-10-21 23:46:14 +00:00
Yu Ping Hu
d0b81a0d06 Treat updates into non-existent body rows as inserts.
Bug: 11245727
Change-Id: I648b0267e9149f3f431ce01be9789087f73edab1
2013-10-21 16:35:45 -07:00
Yu Ping Hu
58202dd5dd am 1fb5fa69: Merge "Populate real name in From: field" into jb-ub-mail-ur10
* commit '1fb5fa6981c66d2eca19187e738eb1f77fb464ec':
  Populate real name in From: field
2013-10-21 15:48:39 -07:00
Yu Ping Hu
1fb5fa6981 Merge "Populate real name in From: field" into jb-ub-mail-ur10 2013-10-21 22:46:55 +00:00
Yu Ping Hu
d9ea4b7787 am 7b28bb95: Merge "Update the folder sync status while searching in IMAP" into jb-ub-mail-ur10
* commit '7b28bb95a34556c5a84e128ba206bff64288d741':
  Update the folder sync status while searching in IMAP
2013-10-21 11:48:43 -07:00
Yu Ping Hu
7b28bb95a3 Merge "Update the folder sync status while searching in IMAP" into jb-ub-mail-ur10 2013-10-21 18:47:09 +00:00
Yu Ping Hu
833de6c0fb am a5a28ffb: Do not require RPC for getCapabilities.
* commit 'a5a28ffb63785eefe8602174316d9ba6233ac428':
  Do not require RPC for getCapabilities.
2013-10-18 19:17:49 -07:00
Tony Mantler
632ee24d48 Populate real name in From: field
b/11246653

Change-Id: I8629ba655b99629f7b14f857acb67cb8453ddb8b
2013-10-18 16:49:56 -07:00
Yu Ping Hu
a5a28ffb63 Do not require RPC for getCapabilities.
Bug: 11241892
Change-Id: I3da136c9035414c821ee2038da01134c551bb9dd
2013-10-18 14:09:09 -07:00
Alon Albert
3601790240 am 7c8d4802: Merge "Handle User Refresh in Edge Cases" into jb-ub-mail-ur10
* commit '7c8d480276123eca0d57179a4874f0046aa57d66':
  Handle User Refresh in Edge Cases
2013-10-18 11:18:07 -07:00
Alon Albert
7c8d480276 Merge "Handle User Refresh in Edge Cases" into jb-ub-mail-ur10 2013-10-18 18:15:38 +00:00