Commit Graph

2534 Commits

Author SHA1 Message Date
Makoto Onuki
8dffa087db am 162b0171: Change account colors to what aren\'t used in Calendar.
Merge commit '162b017140464aea05a47e7540a666b10825a8dc' into froyo-plus-aosp

* commit '162b017140464aea05a47e7540a666b10825a8dc':
  Change account colors to what aren't used in Calendar.
2010-04-14 16:26:14 -07:00
Marc Blank
82e43ff284 am d8a4e4d2: Merge "Don\'t allow Exchange logger to recurse on failure" into froyo
Merge commit 'd8a4e4d25d9a1cbe87c729dfc05cfdc069d4004f' into froyo-plus-aosp

* commit 'd8a4e4d25d9a1cbe87c729dfc05cfdc069d4004f':
  Don't allow Exchange logger to recurse on failure
2010-04-14 16:26:11 -07:00
Makoto Onuki
162b017140 Change account colors to what aren't used in Calendar.
Bug 2535090

Change-Id: I252e04afa402303d226a56f1d7852f50dc26e2ec
2010-04-14 15:18:12 -07:00
Marc Blank
d8a4e4d25d Merge "Don't allow Exchange logger to recurse on failure" into froyo 2010-04-14 14:29:21 -07:00
Andrew Stadler
dc283b1b39 am 5e354cd1: Exit most activities when accounts are deleted
Merge commit '5e354cd1db1baabad061032af5a0632cd0f58d1a' into froyo-plus-aosp

* commit '5e354cd1db1baabad061032af5a0632cd0f58d1a':
  Exit most activities when accounts are deleted
2010-04-14 12:03:36 -07:00
Andrew Stadler
f9890942bc am 383b7dd2: Merge "Final cleanup for account provisioning failures" into froyo
Merge commit '383b7dd29d9380442a0a560d8bdba7e23573b22d' into froyo-plus-aosp

* commit '383b7dd29d9380442a0a560d8bdba7e23573b22d':
  Final cleanup for account provisioning failures
2010-04-14 12:03:29 -07:00
Marc Blank
595ebcebfa am 3fdaa329: Only set ORIGINAL_INSTANCE_TIME in exceptions
Merge commit '3fdaa329692b29c0083008bcbb5c5aa62ae7b9fd' into froyo-plus-aosp

* commit '3fdaa329692b29c0083008bcbb5c5aa62ae7b9fd':
  Only set ORIGINAL_INSTANCE_TIME in exceptions
2010-04-14 12:02:58 -07:00
Andrew Stadler
5e354cd1db Exit most activities when accounts are deleted
This resolves cases like this:  You are in the inbox of an Exchange
account.  You click home, settings, accounts & sync, and you delete
the account.  Now re-enter the Email app.  You'll be left in a strangely
empty inbox, for an account that no longer exists.

* Set a flag any time the reconciler deletes an account
* Check that flag in onResume of any activity that depends on the account
    list and could be left in an "empty" state if account(s) are deleted.
* The Activities in which we check it are:
  * AccountFolderList
  * AccountSettings
  * MailboxList
  * MessageCompose
  * MessageList
  * MessageView
* Clear the flag any time we come in through Welcome, which will dispatch
    to other activities properly based on the number of accounts found.

Bug: 2563998
Change-Id: I00fc542581c2bed92d744a4c2e48a88f83737f11
2010-04-14 09:28:04 -07:00
Andrew Stadler
383b7dd29d Merge "Final cleanup for account provisioning failures" into froyo 2010-04-14 09:14:33 -07:00
Marc Blank
3fdaa32969 Only set ORIGINAL_INSTANCE_TIME in exceptions
* We were setting this for all events, but apparently CalendarProvider
  does not approve, and generates warnings
* Only set this for exceptions

Bug: 2550631
Change-Id: I8a7152eb0d4233432b1a5b5664da964d5433fbae
2010-04-14 08:41:38 -07:00
Andrew Stadler
c98b64c801 Final cleanup for account provisioning failures
* Now that we get proper callbacks on updateMailboxListCallback(),
    show the error banner if there's a problem
* Follow-on to 63186a5442

Bug: 2585159
Change-Id: I2b4f365d02b639bc3ceff9f8938333185d5ba693
2010-04-13 23:49:24 -07:00
Marc Blank
c89e1a8616 Don't allow Exchange logger to recurse on failure
Bug: 2594331
Change-Id: Ie5de4ac11259e5be30d4bf9812164823b9ca46ae
2010-04-13 20:34:13 -07:00
Marc Blank
1205deecec am 627006a8: Fix issue with deleted recurrence
Merge commit '627006a8e3e098f249a93efd2d575b0f0e504340' into froyo-plus-aosp

* commit '627006a8e3e098f249a93efd2d575b0f0e504340':
  Fix issue with deleted recurrence
2010-04-13 20:27:01 -07:00
Marc Blank
627006a8e3 Fix issue with deleted recurrence
* It turns out that this bug is due to a bad rebase/merge for a previous CL
  in which the changed code appears in its new form AND old form
* Fixes change SHA c3aa318200 (CL 48406)
* Don't say it.

Bug: 2587775
Change-Id: I3f70a97e498db30345452b942909448049680fdf
2010-04-13 19:50:51 -07:00
Marc Blank
58f7daac64 am c07cd159: Merge "Try a longer timeout for initial sync" into froyo
Merge commit 'c07cd159d4151c8e75fc32972e2bed3e9aab2d01' into froyo-plus-aosp

* commit 'c07cd159d4151c8e75fc32972e2bed3e9aab2d01':
  Try a longer timeout for initial sync
2010-04-13 19:47:49 -07:00
Marc Blank
c07cd159d4 Merge "Try a longer timeout for initial sync" into froyo 2010-04-13 19:35:19 -07:00
Marc Blank
3093b61668 Try a longer timeout for initial sync
* We are still seeing an issue with at least one user on initial
  calendar sync.
* Increase the read timeout a great deal for initial sync, as it
  can a very long time for the server to respond

Bug: 2569162
Change-Id: I495c38dc58d9a80c5a21e40b6fc5d165d10a3c1a
2010-04-13 18:27:58 -07:00
Makoto Onuki
772758177e am 0f3d3601: Merge "Show device id on the exchange setting screen." into froyo
Merge commit '0f3d36010df682602260bef1e7a59191c90e805e' into froyo-plus-aosp

* commit '0f3d36010df682602260bef1e7a59191c90e805e':
  Show device id on the exchange setting screen.
2010-04-13 17:29:59 -07:00
Makoto Onuki
0f3d36010d Merge "Show device id on the exchange setting screen." into froyo 2010-04-13 17:28:02 -07:00
Makoto Onuki
12b4bc9e80 Show device id on the exchange setting screen.
I've attached a screenshot on the referenced bug.

Also fixed a bug in SyncManager.getDeviceId() where sDeviceId cache wasn't
working.

Bug 2591124

Change-Id: I4b58517c095a96d47fb57179d70091b2c7af5249
2010-04-13 17:10:26 -07:00
Marc Blank
77f820dc0d am 0005eba7: Fix cancellation messages for deleted attendee
Merge commit '0005eba750a10b9b3eda9f8cfb75bdc65c80a919' into froyo-plus-aosp

* commit '0005eba750a10b9b3eda9f8cfb75bdc65c80a919':
  Fix cancellation messages for deleted attendee
2010-04-13 15:09:17 -07:00
Marc Blank
0005eba750 Fix cancellation messages for deleted attendee
* We weren't sending a proper ics file for the deleted attendee, and
  this caused Exchange to send a message to the wrong people (the
  referenced bug)
* Split out code that adds attendees to outgoing mail
* Changed the optional last argument to createMessageForX to be a specified
  attendee, i.e. the only addressee to be used for the message

Bug: 2548465
Change-Id: I629fcfaffe621408ea460d42c9c7c283929f7e79
2010-04-13 13:37:51 -07:00
Marc Blank
14495c05f6 am 63186a54: Send callback if reloadFolderList fails w/ uninit\'ed account
Merge commit '63186a5442f8310b25602235622c3669a4e5b1ec' into froyo-plus-aosp

* commit '63186a5442f8310b25602235622c3669a4e5b1ec':
  Send callback if reloadFolderList fails w/ uninit'ed account
2010-04-13 10:48:11 -07:00
Marc Blank
63186a5442 Send callback if reloadFolderList fails w/ uninit'ed account
Bug: 2585159
Change-Id: I12d9dd84090d10675e3d403124e28dbb6bede3d8
2010-04-13 10:44:00 -07:00
Andrew Stadler
cccfb8464e am a87f8d8b: Changes to improve security policy setup
Merge commit 'a87f8d8bbc0b704974c4230f518cf23b7215fc55' into froyo-plus-aosp

* commit 'a87f8d8bbc0b704974c4230f518cf23b7215fc55':
  Changes to improve security policy setup
2010-04-13 09:26:43 -07:00
Andrew Stadler
a87f8d8bbc Changes to improve security policy setup
* SecurityPolicy:  Fix bug that prevents any notifications after the
    user hits "cancel all" from the notification pane.
* AccountSecurity: If the user cancels the device admin acceptance
    activity, repost the notification.
* MesageList:  Catch security hold condition when entering a mailbox, and
    launch security setup activity.

Bug: 2585159
Change-Id: I60d5d8c693cc5f00fe98a9cc69265802f5bee813
2010-04-13 02:15:37 -07:00
Marc Blank
1c9a47a424 am 0cd062eb: Merge "Fix acknowledgment of Exchange remote wipe" into froyo
Merge commit '0cd062ebd02fa9f3122ddc853cbc909be4c5d2db' into froyo-plus-aosp

* commit '0cd062ebd02fa9f3122ddc853cbc909be4c5d2db':
  Fix acknowledgment of Exchange remote wipe
2010-04-12 18:01:52 -07:00
Marc Blank
0cd062ebd0 Merge "Fix acknowledgment of Exchange remote wipe" into froyo 2010-04-12 17:59:40 -07:00
Marc Blank
2f194cefbb Fix acknowledgment of Exchange remote wipe
* The XML acknowledging the wipe was malformed

Bug: 2589695
Change-Id: I24428a21ce5b08f32c372dcbb50b24d6e6c42645
2010-04-12 17:48:17 -07:00
Marc Blank
9edec6478c am de302226: Always check serverId AND calendarId in queries
Merge commit 'de3022268982d1ef7e81ef563c6b3a87faa9b002' into froyo-plus-aosp

* commit 'de3022268982d1ef7e81ef563c6b3a87faa9b002':
  Always check serverId AND calendarId in queries
2010-04-12 16:49:15 -07:00
Marc Blank
de30222689 Always check serverId AND calendarId in queries
* With multiple accounts, serverId's are not guaranteed to be unique
  (indeed, they rarely are)
* There were two queries in CalendarSyncAdapter that checked only
  serverId and this has caused the referenced bug PLUS others that
  would have turned up later on
* This is a critical fix

Bug: 2589815
Change-Id: I49bc6cb5bb4708f4bf4ca60a891ff78f0b25e989
2010-04-12 16:37:50 -07:00
Marc Blank
c388bf6677 am b5253606: Merge "Sync description with exceptions" into froyo
Merge commit 'b5253606eeeae86938f04415553aac9f3f22daaa' into froyo-plus-aosp

* commit 'b5253606eeeae86938f04415553aac9f3f22daaa':
  Sync description with exceptions
2010-04-12 15:55:35 -07:00
Marc Blank
b5253606ee Merge "Sync description with exceptions" into froyo 2010-04-12 15:53:50 -07:00
Marc Blank
95c071bc63 am 1e3f86df: Merge "Increase timeouts for Exchange sync; prevent early upload sync" into froyo
Merge commit '1e3f86dfd4b3db7bd91893a84584589dc778f52c' into froyo-plus-aosp

* commit '1e3f86dfd4b3db7bd91893a84584589dc778f52c':
  Increase timeouts for Exchange sync; prevent early upload sync
2010-04-12 14:46:06 -07:00
Marc Blank
1e3f86dfd4 Merge "Increase timeouts for Exchange sync; prevent early upload sync" into froyo 2010-04-12 14:42:44 -07:00
Marc Blank
e3df9f95ea Sync description with exceptions
* We weren't sending up the event description with exceptions, so
  changes to description were being lost on upload
* Move the code uploading description so that it happens with
  exceptions as well as top-level events

Bug: 2590020
Change-Id: Ifab556bed68671f3ee8cab02b657adbd8ba9c50c
2010-04-12 14:22:11 -07:00
Marc Blank
2e22263777 Increase timeouts for Exchange sync; prevent early upload sync
* It's reported that 50% of third party users have issues syncing
  Calendar in Exchange
* In testing, it was determined that the server takes > 30 seconds
  to respond to a sync request initially, which is beyond our timeout
  limit
* Also, I found that the system SyncManager was trying to trigger an
  upload sync at the same time (i.e. before the sync session was
  established with the server)
* There are four changes here:
  1) Prevent upload syncs while the sync key is null or "0" ("0"
     is the initial state)
  2) Increase timeout for connection; at worst, this will
     cause a short extra delay in syncs with a bad connection, but this
     will be unnoticable to users
  3) Increase the read timeout for initial sync to twice that of
     regular syncs (the initial sync always seems to take longer)
  3) Reduce the lookback for calendar to two weeks (from one month);
     this is a better default anyway, and it probably reduces the server
     and client load a great deal
* Empirically, this solves the bug for a known completely repeatable
  case.

Bug: 2569162
Change-Id: I36b1c3e1e0b65f50d42e05f1830fed912191651f
2010-04-12 13:59:04 -07:00
Makoto Onuki
b0690302bf am 1fe0aa19: Merge "Set CLEAR_WHEN_TASK_RESET flag when launching Calendar" into froyo
Merge commit '1fe0aa19bf9a64dff0fb0965d29f930303208f73' into froyo-plus-aosp

* commit '1fe0aa19bf9a64dff0fb0965d29f930303208f73':
  Set CLEAR_WHEN_TASK_RESET flag when launching Calendar
2010-04-12 13:30:06 -07:00
Makoto Onuki
1fe0aa19bf Merge "Set CLEAR_WHEN_TASK_RESET flag when launching Calendar" into froyo 2010-04-12 13:27:15 -07:00
Makoto Onuki
f793cd93b9 Set CLEAR_WHEN_TASK_RESET flag when launching Calendar
and Contacts, so that when you relaunch Email from Home, you always see
the Email app, not Calendar/Contacts.

Note as stated in the corresponding bug, this CL itself won't fix the issue,
because CLEAR_WHEN_TASK_RESET will be lost when Contacts/Calendar apps handle
the intent.
There's a feature request against the framework (bug 2586404) which should fix
this losing flag problem.

Bug 2584792

Change-Id: I34ac3707b99926fc07529ea2229f2a6b3c4f93e4
2010-04-12 13:09:56 -07:00
Andrew Stadler
ef01261a89 am 9cc6f46b: Merge "Try TOP even on POP servers that fail to report CAPA" into froyo
Merge commit '9cc6f46b05cdb1678b0ef73daf268c5728e96208' into froyo-plus-aosp

* commit '9cc6f46b05cdb1678b0ef73daf268c5728e96208':
  Try TOP even on POP servers that fail to report CAPA
2010-04-12 11:31:04 -07:00
Andrew Stadler
9cc6f46b05 Merge "Try TOP even on POP servers that fail to report CAPA" into froyo 2010-04-12 11:27:25 -07:00
Andrew Stadler
645fc28301 Try TOP even on POP servers that fail to report CAPA
* Ignore the results of CAPA and always try TOP
* If TOP returns -ERR simply fall back to (bad old slow) RETR
* Unit tests for positive & failure cases

Bug: 2588432
Change-Id: Ife4b551217de1025e14efc46074f16ef4ae99c6f
2010-04-12 10:56:55 -07:00
Marc Blank
ab99976d18 am c3aa3182: Send email to organizer if attendee deletes event/exception
Merge commit 'c3aa31820003bd62a863dc28d699cebdbcead228' into froyo-plus-aosp

* commit 'c3aa31820003bd62a863dc28d699cebdbcead228':
  Send email to organizer if attendee deletes event/exception
2010-04-12 10:26:22 -07:00
Marc Blank
c3aa318200 Send email to organizer if attendee deletes event/exception
* There are two cases, event and exception and both are fixed in this CL

Bug: 2587775
Change-Id: Id325c4877a77074ca6edd4d7fbeb54971d4cf984
2010-04-12 10:12:46 -07:00
Marc Blank
dc0f9ee7ed am 536a3655: Merge "Always add changed exceptions to the upload list" into froyo
Merge commit '536a36555b2a03eb852e2e54afedca7281f67f91' into froyo-plus-aosp

* commit '536a36555b2a03eb852e2e54afedca7281f67f91':
  Always add changed exceptions to the upload list
2010-04-12 10:00:48 -07:00
Marc Blank
536a36555b Merge "Always add changed exceptions to the upload list" into froyo 2010-04-12 09:57:57 -07:00
Marc Blank
c5c5bf7da7 Always add changed exceptions to the upload list
* We were adding deleted exceptions to the "deleted" list; this is bad,
  because the exception then gets deleted from the database after the
  sync.  The symptom is that the deleted exception reappears on the
  calendar.

Bug: 2587837
Change-Id: If497f82ba0b2b817d1cef6165ded23d19876528f
2010-04-11 15:33:39 -07:00
Marc Blank
605433f78d am 3b19278a: Only allow the account mailbox to attempt provisioning
Merge commit '3b19278a24ec6f1062d3c5e38580fe9fb20326cf' into froyo-plus-aosp

* commit '3b19278a24ec6f1062d3c5e38580fe9fb20326cf':
  Only allow the account mailbox to attempt provisioning
2010-04-11 11:55:37 -07:00
Marc Blank
3b19278a24 Only allow the account mailbox to attempt provisioning
* We were allowing all sync services to attempt provisioning, but this
  could potentially lead to a race condition in which two different
  policy keys are created on the server (this is speculative)
* Change to allow only the account mailbox to attempt provisioning
* Log policy keys when verbose exchange logging is enabled
* We'll see if this solves the referenced bug

Bug: 2569162
Change-Id: I36c60098a4866882a8f9f4c288da54ea378d9aee
2010-04-11 09:45:49 -07:00