am 60ea22a0: am eb232290: Always request a folder refresh for new accounts.

* commit '60ea22a0f194528d7af0560c0e7a906526efda85':
  Always request a folder refresh for new accounts.
This commit is contained in:
Yu Ping Hu 2013-05-17 12:35:58 -07:00 committed by Android Git Automerger
commit 5ef0bea935

View File

@ -362,14 +362,12 @@ public class AccountSetupOptions extends AccountSetupActivity implements OnClick
} }
saveAccountAndFinish(); saveAccountAndFinish();
// If we're local, update the folder list (to get our starting folders, e.g. Inbox) // Update the folder list (to get our starting folders, e.g. Inbox)
EmailServiceProxy proxy = EmailServiceUtils.getServiceForAccount(this, null, account.mId); EmailServiceProxy proxy = EmailServiceUtils.getServiceForAccount(this, null, account.mId);
if (!proxy.isRemote()) { try {
try { proxy.updateFolderList(account.mId);
proxy.updateFolderList(account.mId); } catch (RemoteException e) {
} catch (RemoteException e) { // It's all good
// It's all good
}
} }
} }