Oh account name/email mixups, I've missed you so (no I haven't)
b/11341847
Change-Id: Ib3d13e28f742e6cac84795d46121e4be2994abba
diff --git a/src/com/android/email/preferences/EmailPreferenceMigrator.java b/src/com/android/email/preferences/EmailPreferenceMigrator.java
index 1562cc8..b8e54f5 100644
--- a/src/com/android/email/preferences/EmailPreferenceMigrator.java
+++ b/src/com/android/email/preferences/EmailPreferenceMigrator.java
@@ -97,7 +97,8 @@
final Cursor ecAccountCursor = context.getContentResolver().query(
com.android.emailcommon.provider.Account.CONTENT_URI,
com.android.emailcommon.provider.Account.CONTENT_PROJECTION,
- AccountColumns.EMAIL_ADDRESS + " = ?", new String[] { account.name },
+ AccountColumns.EMAIL_ADDRESS + " = ?",
+ new String[] { account.getEmailAddress() },
null);
final com.android.emailcommon.provider.Account ecAccount =
new com.android.emailcommon.provider.Account();