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

Commit dc150492 authored by Michael Wachenschwanz's avatar Michael Wachenschwanz
Browse files

Update to new method of getting display power profile constants

Bug: 200226329
Test: builds and flashes
Change-Id: I4abcb609a383224bba1550cfd3e50bb68f58ba72
parent 14a90d06
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -102,7 +102,9 @@ public class BatteryAppListPreferenceController extends AbstractPreferenceContro
            }

            PowerProfile powerProfile = new PowerProfile(context);
            return powerProfile.getAveragePower(PowerProfile.POWER_SCREEN_FULL)
            // Cheap hack to try to figure out if the power_profile.xml was populated.
            return powerProfile.getAveragePowerForOrdinal(
                    PowerProfile.POWER_GROUP_DISPLAY_SCREEN_FULL, 0)
                    >= MIN_AVERAGE_POWER_THRESHOLD_MILLI_AMP;
        }
    };