Init BatteryUtils in constructor am: 116fec5b25

am: d6ff657b78

Change-Id: I876a9fc869ae48ef6bf45080c6036980423d1fe5
This commit is contained in:
jackqdyulei
2017-07-10 20:26:35 +00:00
committed by android-build-merger
2 changed files with 8 additions and 0 deletions

View File

@@ -38,6 +38,7 @@ public class BackgroundCheckAction extends AnomalyAction {
super(context);
mAppOpsManager = (AppOpsManager) context.getSystemService(Context.APP_OPS_SERVICE);
mActionMetricKey = MetricsProto.MetricsEvent.ACTION_APP_BACKGROUND_CHECK;
mBatteryUtils = BatteryUtils.getInstance(context);
}
@Override