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

Commit c191c6a8 authored by Kweku Adams's avatar Kweku Adams
Browse files

Allow expedited jobs to be persisted.

Bug: 171305774
Test: atest CtsJobSchedulerTestCases
Change-Id: I8ca092b608a3725e9c079e18d94f5019e9cefcab
parent 22e6db87
Loading
Loading
Loading
Loading
+0 −3
Original line number Diff line number Diff line
@@ -1666,9 +1666,6 @@ public class JobInfo implements Parcelable {
            if (isPeriodic) {
                throw new IllegalArgumentException("An expedited job cannot be periodic");
            }
            if (isPersisted) {
                throw new IllegalArgumentException("An expedited job cannot be persisted");
            }
            if (constraintFlags != 0 || (flags & ~FLAG_EXPEDITED) != 0) {
                throw new IllegalArgumentException(
                        "An expedited job can only have network constraints");