Merge "Remove brightness adjustment check."
This commit is contained in:
committed by
Android (Google) Code Review
commit
2c2e9533ce
@@ -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