Remove brightness adjustment check.
Bug: 127825565 Test: N/A Change-Id: I35147d027dd88d951d03b5dece2d39551390c060
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user