Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 2c2e9533 authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Android (Google) Code Review
Browse files

Merge "Remove brightness adjustment check."

parents d80c1716 3d79da81
Loading
Loading
Loading
Loading
+0 −4
Original line number Diff line number Diff line
@@ -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);
        }
    }