am 1db58a95
: am 2569cfcb
: am 2ff1a5cd
: am e87b38fa
: Merge "Prevent account reconcilliation during migration" into ub-gmail-ur14-dev
* commit '1db58a95beb22f763e2d6fc9f39f936cf4855908': Prevent account reconcilliation during migration
This commit is contained in:
commit
2d488bf43d
@ -37,6 +37,7 @@ import com.android.email.service.EmailServiceUtils.EmailServiceInfo;
|
||||
import com.android.emailcommon.Logging;
|
||||
import com.android.emailcommon.provider.Account;
|
||||
import com.android.emailcommon.provider.HostAuth;
|
||||
import com.android.emailcommon.utility.MigrationUtils;
|
||||
import com.android.mail.utils.LogUtils;
|
||||
import com.google.common.collect.ImmutableList;
|
||||
|
||||
@ -159,8 +160,13 @@ public class AccountReconciler {
|
||||
boolean exchangeAccountDeleted = false;
|
||||
|
||||
LogUtils.d(Logging.LOG_TAG, "reconcileAccountsInternal");
|
||||
// See if we should have the Eas authenticators enabled.
|
||||
|
||||
if (MigrationUtils.migrationInProgress()) {
|
||||
LogUtils.d(Logging.LOG_TAG, "deferring reconciliation, migration in progress");
|
||||
return false;
|
||||
}
|
||||
|
||||
// See if we should have the Eas authenticators enabled.
|
||||
if (!EmailServiceUtils.isServiceAvailable(context,
|
||||
context.getString(R.string.protocol_eas))) {
|
||||
EmailServiceUtils.disableExchangeComponents(context);
|
||||
|
Loading…
Reference in New Issue
Block a user