Merge "Hook up Adaptive Battery to new flag." into pi-dev am: d2e9b56996
am: 59ba07c2da
Change-Id: I875f0264133f8358b4f85ccba18b672c0a05015f
This commit is contained in:
@@ -143,7 +143,7 @@ public class AnomalyDetectionJobService extends JobService {
|
||||
final int uid = extractUidFromStatsDimensionsValue(intentDimsValue);
|
||||
final boolean autoFeatureOn = powerUsageFeatureProvider.isSmartBatterySupported()
|
||||
? Settings.Global.getInt(contentResolver,
|
||||
Settings.Global.APP_STANDBY_ENABLED, ON) == ON
|
||||
Settings.Global.ADAPTIVE_BATTERY_MANAGEMENT_ENABLED, ON) == ON
|
||||
: Settings.Global.getInt(contentResolver,
|
||||
Settings.Global.APP_AUTO_RESTRICTION_ENABLED, ON) == ON;
|
||||
final String packageName = batteryUtils.getPackageName(uid);
|
||||
|
Reference in New Issue
Block a user