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

Commit c68cef04 authored by Serik Beketayev's avatar Serik Beketayev
Browse files

[JobScheduler] Typo fix

Fixing wrong constaints used to identify state of the job

Test: WIP
Bug: 111413203
Change-Id: I161178a71a7d25d865e40da08bbb61f34450cf23
parent fd41f0b7
Loading
Loading
Loading
Loading
+9 −1
Original line number Diff line number Diff line
@@ -49,6 +49,14 @@ public class JobSnapshot implements Parcelable {
        return (mSatisfiedConstraints & flag) != 0;
    }

    /**
     * Returning JobInfo bound to this snapshot
     * @return JobInfo of this snapshot
     */
    public JobInfo getJobInfo() {
        return mJob;
    }

    /**
     * Is this job actually runnable at this moment?
     */
@@ -77,7 +85,7 @@ public class JobSnapshot implements Parcelable {
     */
    public boolean isRequireDeviceIdleSatisfied() {
        return !mJob.isRequireDeviceIdle()
                || satisfied(JobInfo.CONSTRAINT_FLAG_BATTERY_NOT_LOW);
                || satisfied(JobInfo.CONSTRAINT_FLAG_DEVICE_IDLE);
    }

    public boolean isRequireStorageNotLowSatisfied() {