Merge "Restrict all jobs when the device is too hot." am: 5a750a5aa1
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1766505 Change-Id: Ifa4a464064ac71b26372a2afe760912c22431e76
This commit is contained in:
@@ -58,7 +58,7 @@ public class ThermalStatusRestriction extends JobRestriction {
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public boolean isJobRestricted(JobStatus job) {
|
public boolean isJobRestricted(JobStatus job) {
|
||||||
return mIsThermalRestricted && job.hasConnectivityConstraint();
|
return mIsThermalRestricted;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|||||||
Reference in New Issue
Block a user