Commit Graph

4836 Commits

Author SHA1 Message Date
Makoto Onuki
9f0283dbd7 Merge "Better fix for the PendingIntent issue." 2011-03-23 15:30:51 -07:00
Todd Kennedy
284d8d7db5 Add support for UIDPLUS capability
When copying messages between mailboxes using standard IMAP, we must perform
a QUERY or FETCH in order to determine the new message UID. However, if the
server supports the UIDPLUS capability, the server will return the new UID
as part of the response to the "UID COPY" command.

This is the first of a couple modifications. We still need to fallback to a
less efficient QUERY/FETCH if the server does not support UIDPLUS.

bug 4092301

Change-Id: I9279f7fd70daf85adba3b3e202c12d67ddf91f22
2011-03-23 15:15:45 -07:00
Makoto Onuki
308ce92847 Better fix for the PendingIntent issue.
Refactor the changes introduced in Ib02842bb.

- Now Welcome and AccountSettingsXL accept intents with URLs of the following
style, and get IDs from query params, rather than extras.

Welcome:
content://ui.email.android.com/view/mailbox?ACCOUNT_ID=1&MAILBOX_ID=2&MESSAGE_ID=3

AccountSettingsXL:
content://ui.email.android.com/settings?ACCOUNT_ID=1

- Now the "new message" and "login failed" notifications use these new style
intents, so the system wouldn't merge PendingIntents for different accounts.

Also:
- Moved all notification creation logic to NotificationController.
  (Except the one in CalendarSyncEnabler; which is used only to support
  upgrading from pre-froyo and I don't think it's worth refactoring.)

- Note the "password expired/expiring" and "security needed" notifications
aren't changed; they still use extras to store account IDs.  This is okay
because these notifications are not per-account.

Bug 4065269

Change-Id: I70737438d2e7c45fd7488a5b0a7105c8568e02f7
2011-03-23 14:49:38 -07:00
Makoto Onuki
39745c3dc0 Fix AccountSetupOptions for phone UI
Bug 4157050

Change-Id: I1addca05b9c56266b28e7449c87b3a5010ed671b
2011-03-23 11:17:46 -07:00
Makoto Onuki
ae72ec88ce Compose: Set focus to the To field by default
We initialize the focus with setNewMessageFocus(), but it's only called
from processSourceMessage() (for EDIT_DRAFT) initFromIntent() (for other
actions, except for "new draft").  We didn't intialize the focus for new
drafts.  Let's just get the To field to get the focus by default to
cover this case.

Bug 4048238

Change-Id: I50cd69b8813198c96beab2025576d390520dc6a4
2011-03-22 11:43:12 -07:00
Makoto Onuki
ca64197427 Merge "Improve EmailAsyncTask" 2011-03-21 17:31:48 -07:00
Makoto Onuki
d72f7bdf11 Improve EmailAsyncTask
Added 6 methods:
- execute{Parallel,Serial}
- cancelPreviousAndExecute{Parallel,Serial}
- runAsyncParallel{Parallel,Serial} (replacement for Utility.runAsync)

Bug 4083415

Change-Id: I5ca33000e52fc5265ccc84a6e5acb0d3359d0eb4
2011-03-21 16:41:08 -07:00
Todd Kennedy
a3bc8a2a9f Merge "Don't sync messages moved from the sent folder" 2011-03-21 16:41:00 -07:00
Todd Kennedy
9134916c39 Make method forceLoadSettings() private
Change-Id: Idc36fa205046d19f9a6a9c92c10a9a6f637f1663
2011-03-21 16:18:03 -07:00
Todd Kennedy
c17e9ce85f Don't sync messages moved from the sent folder
Modified location of the test to processUploadMessage() method. We do this to
prevent creating multiple EmailContent.Message objects.

bug 4096266

Change-Id: Id83d3703283c0cd89a60c6210976093d39fb6934
2011-03-21 16:13:15 -07:00
Eric Fischer
ad93ba9f1c am 1157196e: (-s ours) am d6dbe885: (-s ours) am 73310179: Import revised translations. DO NOT MERGE
* commit '1157196e3674d475968c70420a6623983a403f37':
  Import revised translations.  DO NOT MERGE
2011-03-18 16:58:51 -07:00
Eric Fischer
1157196e36 am d6dbe885: (-s ours) am 73310179: Import revised translations. DO NOT MERGE
* commit 'd6dbe88595ce0e0a44110f1d714f758fe05f5246':
  Import revised translations.  DO NOT MERGE
2011-03-18 16:54:47 -07:00
Eric Fischer
d6dbe88595 am 73310179: Import revised translations. DO NOT MERGE
* commit '7331017905450502d0e8e0b849c01d136696d9af':
  Import revised translations.  DO NOT MERGE
2011-03-18 16:10:11 -07:00
Eric Fischer
7331017905 Import revised translations. DO NOT MERGE
Change-Id: I708facf4f7eebd708abd2a7b2db405a33afc7d00
2011-03-18 15:14:44 -07:00
Todd Kennedy
5a50442874 Reload server settings after auto discover
There is an optimization to prevent re-loading server settings if they've
arlready been loaded once. However, in certain circumstances (e.g., server
setting auto discover), we want to be able to reload the server settings.

bug 4091290

Change-Id: I03c47a7fe3b45d1c581401ac891895a00315d45b
2011-03-18 08:56:13 -07:00
Eric Fischer
721290eb2a Import revised translations.
Change-Id: I6c914be6eb81740ec2f44dc89aee68e8cbc95b0e
2011-03-17 16:53:14 -07:00
Todd Kennedy
a9f5d0ab94 Merge "Don't sync messages moved from the sent folder" 2011-03-17 13:35:35 -07:00
Todd Kennedy
dece5050c2 Don't sync messages moved from the sent folder
When processing message updates, we handle messages in the "sent" folder
specially. We continue to do that. However, we must also check that the
given message is still in the "sent" folder.

bug 4096266

Change-Id: Iaa47512fad287e63d8216b755a761b52b324cfff
2011-03-17 13:16:36 -07:00
Marc Blank
5604f5eebc am b50a766d: Merge "Remove STOPSHIP logging" into honeycomb-mr1
* commit 'b50a766d4acc563beff90d22dc3dac48038ff4f1':
  Remove STOPSHIP logging
2011-03-17 08:03:08 -07:00
Marc Blank
b50a766d4a Merge "Remove STOPSHIP logging" into honeycomb-mr1 2011-03-17 07:58:04 -07:00
Eric Fischer
ef86ac5a97 am b814d0b3: (-s ours) Import revised translations. DO NOT MERGE
* commit 'b814d0b36832f9a83af704902e6951b527d3e3e0':
  Import revised translations.  DO NOT MERGE
2011-03-16 17:14:09 -07:00
Eric Fischer
b814d0b368 Import revised translations. DO NOT MERGE
Change-Id: I329f90d2668658f86572f1886ba17566f6da87b0
2011-03-16 17:01:33 -07:00
Todd Kennedy
6000d4b975 Fix build soju-eng build error
The phone build was missing one layout and a couple dimensions.

Change-Id: I7d48599e82066c2a293f7b442eed644185848c87
2011-03-16 13:49:17 -07:00
Andy Stadler
b959d9b9b2 am 22759bac: Handle complex chars policy correctly
* commit '22759bacd95385d95d3d9321f490763df1aba89d':
  Handle complex chars policy correctly
2011-03-16 12:38:57 -07:00
Marc Blank
da3c4b8261 Remove STOPSHIP logging
Change-Id: I73786fb2f4ff10d3c0767a873e5eb1e443f1affc
2011-03-16 11:08:56 -07:00
Andy Stadler
22759bacd9 Handle complex chars policy correctly
* We needed to set DevicePolicyMnager.PASSWORD_QUALITY_COMPLEX
* Setting this, we also need to clear some of the defaults for complex
  mode that are not correct for Exchange's definition of "complex".
* Unit tests

Bug: 4092218
Change-Id: Iea7bd05d48f1aa9406222c1db5937cfd7f2662b8
2011-03-16 09:48:08 -07:00
Andy Stadler
033d911dce am 714b2f2d: Merge "Reduce chance of crash when dismissing dialogs asynchronously" into honeycomb-mr1
* commit '714b2f2da36d750eb4acbf505398a44b93546322':
  Reduce chance of crash when dismissing dialogs asynchronously
2011-03-15 23:51:02 -07:00
Andy Stadler
384ceade8d am f0a75b9d: Merge "Add 55 roadrunner email setups" into honeycomb-mr1
* commit 'f0a75b9d66468d4f6daf4af1a1317bff7fa96194':
  Add 55 roadrunner email setups
2011-03-15 23:51:00 -07:00
Eric Fischer
bb1f36f45b am d85b9879: (-s ours) Import revised translations. DO NOT MERGE
* commit 'd85b9879f23a4d42aaae210a563d1ffe1f92e06a':
  Import revised translations.  DO NOT MERGE
2011-03-15 23:34:08 -07:00
Andy Stadler
714b2f2da3 Merge "Reduce chance of crash when dismissing dialogs asynchronously" into honeycomb-mr1 2011-03-15 22:31:21 -07:00
Andy Stadler
f0a75b9d66 Merge "Add 55 roadrunner email setups" into honeycomb-mr1 2011-03-15 16:04:55 -07:00
Andy Stadler
a685d3b019 Reduce chance of crash when dismissing dialogs asynchronously
* Caught & diagnosed by crash while checking settings
* Also possible in MoveMessageToDialog

Bug: 3412875
Change-Id: Ie78c61cf5ca10ce1eedc25ba2eb97ed0ac5bc615
2011-03-15 15:02:48 -07:00
Eric Fischer
d85b9879f2 Import revised translations. DO NOT MERGE
Change-Id: I07a17bf7191b4cb8420ffb5c55dfe26600278a26
2011-03-15 14:47:59 -07:00
Andy Stadler
36e6f4931e Add 55 roadrunner email setups
Bug: 4086524
Change-Id: I8d7758d3720e45515abae1d071a8b149ac63a4ce
2011-03-15 13:51:57 -07:00
Eric Fischer
47baa33eba Merge "Import revised translations." 2011-03-15 11:59:14 -07:00
Eric Fischer
c37565d0bd Import revised translations.
Change-Id: I0d4fd18c71c604d08dd0a0989678382011ca9897
2011-03-15 10:42:39 -07:00
Todd Kennedy
d226cad237 am 9c795b02: Fix portrait widget header background
* commit '9c795b025ec9318ee26ae3b4231f0bff28b78f27':
  Fix portrait widget header background
2011-03-15 08:23:05 -07:00
Todd Kennedy
9c795b025e Fix portrait widget header background
When the device is in portrait mode and the widget gets resized to be
narrow (2-by), the header background becomes corrupt. The new assets
now look correct at any size.

bug 3500861

Change-Id: I80a655c8822f2a14f9100afe32c893bf412ac936
2011-03-14 16:48:05 -07:00
Todd Kennedy
45b2412a95 am 09f9fc5e: Merge ""final" tweaks to widget" into honeycomb-mr1
* commit '09f9fc5e4a0ac79deab8fefd30e99cced2ac8317':
  "final" tweaks to widget
2011-03-11 11:50:35 -08:00
Todd Kennedy
09f9fc5e4a Merge ""final" tweaks to widget" into honeycomb-mr1 2011-03-11 10:56:12 -08:00
Todd Kennedy
46b8ea4b53 "final" tweaks to widget
* Add the background to the widget
* Updated background to a stretchable 9-patch
* Shift "Tap icon to change" text up a couple pixels

bug 3510984

Change-Id: I5ea65b802098c1af08e865f85fb5470e0a00b76b
2011-03-11 10:54:29 -08:00
Andy Stadler
ee6686043a am 0820e008: Merge "Fix race condition NPE caught by monkey" into honeycomb-mr1
* commit '0820e00841aca88e70a88a25e891c156fa578088':
  Fix race condition NPE caught by monkey
2011-03-11 08:56:59 -08:00
Andy Stadler
0820e00841 Merge "Fix race condition NPE caught by monkey" into honeycomb-mr1 2011-03-11 08:52:40 -08:00
Andy Stadler
16be7eaeb0 am bdf02724: Update Email version# for 3.1 release
* commit 'bdf02724256f939a20a97ff1d0f26772d7c7ea55':
  Update Email version# for 3.1 release
2011-03-10 15:00:04 -08:00
Andy Stadler
5f830f8608 Fix race condition NPE caught by monkey
Bug: 4080321
Change-Id: Ia6ef0a47f87ffdc96269a95cc3bc5564d2e98440
2011-03-10 14:56:10 -08:00
Andy Stadler
bdf0272425 Update Email version# for 3.1 release
Bug: 3018936
Change-Id: Id1e9ae8c714561a966ef3c44769a74e9704d0dc6
2011-03-10 14:37:51 -08:00
Todd Kennedy
d43ebd7804 am 19829ef7: Merge "Fix NPE when trying to open attachments" into honeycomb-mr1
* commit '19829ef7edfe1a72a88e0ba57f3ce6c57d9ae8f6':
  Fix NPE when trying to open attachments
2011-03-10 14:27:19 -08:00
Todd Kennedy
f94fdfd4b5 am d135ac61: Merge "Update attachment buttons after loading attachment" into honeycomb-mr1
* commit 'd135ac61ee22c81509c71273b2d053fc36ea210a':
  Update attachment buttons after loading attachment
2011-03-10 14:25:40 -08:00
Todd Kennedy
19829ef7ed Merge "Fix NPE when trying to open attachments" into honeycomb-mr1 2011-03-10 14:23:05 -08:00
Todd Kennedy
d135ac61ee Merge "Update attachment buttons after loading attachment" into honeycomb-mr1 2011-03-10 14:20:50 -08:00