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

This commit is contained in:
Matthew Williams
2013-09-09 22:06:05 +00:00
committed by Android (Google) Code Review

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)