email: fix Exchange sync frequency account setup
Auto sync is not displayed as an option in sync frequency settings, because capabilities aren't filled. Just ensure account capabilities are always saved. Change-Id: I70b7ab9464a99eebf7f82726faa0fb2418e09a99 Signed-off-by: Jorge Ruesga <jorge@ruesga.com>
This commit is contained in:
parent
15cc6ebeec
commit
aea3dff32d
@ -387,6 +387,10 @@ public class AccountCheckSettingsFragment extends Fragment {
|
||||
if (bundle == null) {
|
||||
return new MessagingException(MessagingException.UNSPECIFIED_EXCEPTION);
|
||||
}
|
||||
|
||||
// Save account protocol and capabilities
|
||||
mAccount.mCapabilities = bundle.getInt(
|
||||
EmailServiceProxy.SETTINGS_BUNDLE_CAPABILITIES, 0);
|
||||
mAccount.mProtocolVersion = bundle.getString(
|
||||
EmailServiceProxy.VALIDATE_BUNDLE_PROTOCOL_VERSION);
|
||||
int resultCode = bundle.getInt(EmailServiceProxy.VALIDATE_BUNDLE_RESULT_CODE);
|
||||
@ -417,10 +421,6 @@ public class AccountCheckSettingsFragment extends Fragment {
|
||||
EmailServiceProxy.VALIDATE_BUNDLE_ERROR_MESSAGE);
|
||||
return new MessagingException(resultCode, errorMessage);
|
||||
}
|
||||
|
||||
// Save account capabilities
|
||||
mAccount.mCapabilities = bundle.getInt(
|
||||
EmailServiceProxy.SETTINGS_BUNDLE_CAPABILITIES, 0);
|
||||
}
|
||||
|
||||
final EmailServiceInfo info;
|
||||
|
Loading…
Reference in New Issue
Block a user