Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit bec23ea9 authored by Matthew Williams's avatar Matthew Williams Committed by Android (Google) Code Review
Browse files

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

parents 16c32207 d8abd6a1
Loading
Loading
Loading
Loading
+3 −0
Original line number Original line Diff line number Diff line
@@ -1745,6 +1745,9 @@ public abstract class ContentResolver {
     * @param extras any extras to pass to the SyncAdapter.
     * @param extras any extras to pass to the SyncAdapter.
     */
     */
    public static void requestSync(Account account, String authority, Bundle extras) {
    public static void requestSync(Account account, String authority, Bundle extras) {
        if (extras == null) {
            throw new IllegalArgumentException("Must specify extras.");
        }
        SyncRequest request =
        SyncRequest request =
            new SyncRequest.Builder()
            new SyncRequest.Builder()
                .setSyncAdapter(account, authority)
                .setSyncAdapter(account, authority)