Remove brightness adjustment check.

Bug: 127825565
Test: N/A
Change-Id: I35147d027dd88d951d03b5dece2d39551390c060
This commit is contained in:
Kweku Adams
2019-03-11 11:03:55 -07:00
parent ab5598dfa7
commit 3d79da81be

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);
}
}