Merge "Speed up provision notification after security failure" into froyo

This commit is contained in:
Marc Blank 2010-04-16 18:16:17 -07:00 committed by Android (Google) Code Review
commit 17e8ba7eda

View File

@ -2046,6 +2046,9 @@ public class EasSyncService extends AbstractSyncService {
break; break;
case EXIT_SECURITY_FAILURE: case EXIT_SECURITY_FAILURE:
status = EmailServiceStatus.SECURITY_FAILURE; status = EmailServiceStatus.SECURITY_FAILURE;
// Ask for a new folder list. This should wake up the account mailbox; a
// security error in account mailbox should start the provisioning process
SyncManager.reloadFolderList(mContext, mAccount.mId, true);
break; break;
default: default:
status = EmailServiceStatus.REMOTE_EXCEPTION; status = EmailServiceStatus.REMOTE_EXCEPTION;