am b55ea669: am 9d91dd80: Specify correct sync extras for user-requested syncs.

* commit 'b55ea669d1b3c90abb73c61eab1d48c67789f231':
  Specify correct sync extras for user-requested syncs.
This commit is contained in:
Yu Ping Hu 2013-03-12 20:51:41 +00:00 committed by Android Git Automerger
commit cfdff9a116

View File

@ -111,7 +111,11 @@ public abstract class EmailServiceStub extends IEmailService.Stub implements IEm
android.accounts.Account acct = new android.accounts.Account(account.mEmailAddress,
info.accountType);
Bundle extras = new Bundle();
if (userRequest) {
extras.putBoolean(ContentResolver.SYNC_EXTRAS_MANUAL, true);
extras.putBoolean(ContentResolver.SYNC_EXTRAS_DO_NOT_RETRY, true);
extras.putBoolean(ContentResolver.SYNC_EXTRAS_EXPEDITED, true);
}
extras.putLong(SYNC_EXTRA_MAILBOX_ID, mailboxId);
ContentResolver.requestSync(acct, EmailContent.AUTHORITY, extras);
}