Merge "Remove brightness adjustment check."

This commit is contained in:
TreeHugger Robot
2019-03-11 22:52:54 +00:00
committed by Android (Google) Code Review

View File

@@ -476,10 +476,6 @@ public final class BatterySaverPolicyConfig implements Parcelable {
*/
@NonNull
public BatterySaverPolicyConfig build() {
if (!mEnableAdjustBrightness && Float.compare(1f, mAdjustBrightnessFactor) != 0) {
throw new IllegalArgumentException("Brightness adjustment factor changed without "
+ "enabling brightness adjustment");
}
return new BatterySaverPolicyConfig(this);
}
}