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

Commit 497381d5 authored by Kweku Adams's avatar Kweku Adams Committed by Automerger Merge Worker
Browse files

Merge "Allow linear backoff policy for UI jobs." into udc-dev am: 6aef66c9

parents c664a6ab 6aef66c9
Loading
Loading
Loading
Loading
+1 −5
Original line number Original line Diff line number Diff line
@@ -2344,11 +2344,7 @@ public class JobInfo implements Parcelable {
            // UIDTs
            // UIDTs
            if (networkRequest == null) {
            if (networkRequest == null) {
                throw new IllegalArgumentException(
                throw new IllegalArgumentException(
                        "A user-initaited data transfer job must specify a valid network type");
                        "A user-initiated data transfer job must specify a valid network type");
            }
            if (backoffPolicy == BACKOFF_POLICY_LINEAR) {
                throw new IllegalArgumentException(
                        "A user-initiated data transfer job cannot have a linear backoff policy.");
            }
            }
        }
        }
    }
    }