Don't report connection error when account isn't initialized
* We report uninitialized for updateFolderList when no mailboxes
have been created
Bug: 3235788
Change-Id: I337cfeac83bf320e8078e5a837976414fdd93e0f
diff --git a/src/com/android/email/Controller.java b/src/com/android/email/Controller.java
index 1e9a785..63a68a2 100644
--- a/src/com/android/email/Controller.java
+++ b/src/com/android/email/Controller.java
@@ -1494,6 +1494,8 @@
switch (statusCode) {
case EmailServiceStatus.SUCCESS:
case EmailServiceStatus.IN_PROGRESS:
+ // Don't generate error if the account is uninitialized
+ case EmailServiceStatus.ACCOUNT_UNINITIALIZED:
return null;
case EmailServiceStatus.LOGIN_FAILED: