Merge "Update to new method of getting display power profile constants" into sc-v2-dev am: d754409050 am: d8d7b901b0

Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Settings/+/15927847

Change-Id: Iae7473f3c59b46ea22a71f23a1d480a013fbe097
This commit is contained in:
TreeHugger Robot
2021-10-08 06:22:12 +00:00
committed by Automerger Merge Worker

View File

@@ -102,7 +102,9 @@ public class BatteryAppListPreferenceController extends AbstractPreferenceContro
} }
PowerProfile powerProfile = new PowerProfile(context); 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; >= MIN_AVERAGE_POWER_THRESHOLD_MILLI_AMP;
} }
}; };