am bec23ea9: Merge "Preserve CTS fail behaviour on null bundle for old API" into klp-dev

* commit 'bec23ea922566c4b1656deffe1b1951575ae923f':
  Preserve CTS fail behaviour on null bundle for old API
This commit is contained in:
Matthew Williams
2013-09-09 15:10:10 -07:00
committed by Android Git Automerger

View File

@@ -1745,6 +1745,9 @@ public abstract class ContentResolver {
* @param extras any extras to pass to the SyncAdapter.
*/
public static void requestSync(Account account, String authority, Bundle extras) {
if (extras == null) {
throw new IllegalArgumentException("Must specify extras.");
}
SyncRequest request =
new SyncRequest.Builder()
.setSyncAdapter(account, authority)