com.android.mail.providers.Account contructors are no longer public
and clients need to use Account.builder().buildFrom(...) instead. Change-Id: I7559540458ae549c399effc59392930ec914ffcc
This commit is contained in:
parent
845001d250
commit
7e75afadb1
@ -331,7 +331,7 @@ public class NotificationController {
|
||||
com.android.mail.providers.Account uiAccount = null;
|
||||
try {
|
||||
if (accountCursor.moveToFirst()) {
|
||||
uiAccount = new com.android.mail.providers.Account(accountCursor);
|
||||
uiAccount = com.android.mail.providers.Account.builder().buildFrom(accountCursor);
|
||||
}
|
||||
} finally {
|
||||
accountCursor.close();
|
||||
@ -671,7 +671,7 @@ public class NotificationController {
|
||||
com.android.mail.providers.Account account = null;
|
||||
try {
|
||||
if (accountCursor.moveToFirst()) {
|
||||
account = new com.android.mail.providers.Account(accountCursor);
|
||||
account = com.android.mail.providers.Account.builder().buildFrom(accountCursor);
|
||||
}
|
||||
} finally {
|
||||
accountCursor.close();
|
||||
|
@ -210,6 +210,7 @@ public class AccountSettingsFragment extends MailAccountPrefsFragment
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onSaveInstanceState(Bundle outstate) {
|
||||
super.onSaveInstanceState(outstate);
|
||||
if (mCheckFrequency != null) {
|
||||
@ -459,7 +460,7 @@ public class AccountSettingsFragment extends MailAccountPrefsFragment
|
||||
}
|
||||
|
||||
final com.android.mail.providers.Account uiAccount =
|
||||
new com.android.mail.providers.Account(uiAccountCursor);
|
||||
com.android.mail.providers.Account.builder().buildFrom(uiAccountCursor);
|
||||
|
||||
map.put(RESULT_KEY_UIACCOUNT, uiAccount);
|
||||
|
||||
|
@ -57,7 +57,7 @@ public class EmailPreferenceMigrator extends BasePreferenceMigrator {
|
||||
} else {
|
||||
try {
|
||||
while (accountCursor.moveToNext()) {
|
||||
accounts.add(new Account(accountCursor));
|
||||
accounts.add(Account.builder().buildFrom(accountCursor));
|
||||
}
|
||||
} finally {
|
||||
accountCursor.close();
|
||||
|
@ -5402,7 +5402,7 @@ public class EmailProvider extends ContentProvider
|
||||
try {
|
||||
if (ac.moveToFirst()) {
|
||||
final com.android.mail.providers.Account uiAccount =
|
||||
new com.android.mail.providers.Account(ac);
|
||||
com.android.mail.providers.Account.builder().buildFrom(ac);
|
||||
Intent intent = new Intent(context, FolderPickerActivity.class);
|
||||
intent.putExtra(PICKER_UI_ACCOUNT, uiAccount);
|
||||
intent.putExtra(PICKER_MAILBOX_TYPE, type);
|
||||
|
@ -159,7 +159,7 @@ public class WidgetProvider extends BaseWidgetProvider {
|
||||
com.android.mail.providers.Account uiAccount = null;
|
||||
try {
|
||||
if (accountCursor.moveToFirst()) {
|
||||
uiAccount = new com.android.mail.providers.Account(accountCursor);
|
||||
uiAccount = com.android.mail.providers.Account.builder().buildFrom(accountCursor);
|
||||
}
|
||||
} finally {
|
||||
accountCursor.close();
|
||||
|
@ -231,7 +231,7 @@ public class MailActivityEmail extends com.android.mail.ui.MailActivity {
|
||||
com.android.mail.providers.Account account = null;
|
||||
try {
|
||||
if (accountCursor.moveToFirst()) {
|
||||
account = new com.android.mail.providers.Account(accountCursor);
|
||||
account = com.android.mail.providers.Account.builder().buildFrom(accountCursor);
|
||||
}
|
||||
} finally {
|
||||
accountCursor.close();
|
||||
|
Loading…
Reference in New Issue
Block a user