Merge "Preserve CTS fail behaviour on null bundle for old API" into klp-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
bec23ea922
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user