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

Commit 3d79da81 authored by Kweku Adams's avatar Kweku Adams
Browse files

Remove brightness adjustment check.

Bug: 127825565
Test: N/A
Change-Id: I35147d027dd88d951d03b5dece2d39551390c060
parent ab5598df
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);
        }
    }