Merge "Update log metrics in battery usage." into main
diff --git a/src/com/android/settings/fuelgauge/AdvancedPowerUsageDetail.java b/src/com/android/settings/fuelgauge/AdvancedPowerUsageDetail.java
index 3df6b1a..6b04d3c 100644
--- a/src/com/android/settings/fuelgauge/AdvancedPowerUsageDetail.java
+++ b/src/com/android/settings/fuelgauge/AdvancedPowerUsageDetail.java
@@ -266,18 +266,6 @@
initHeader();
mOptimizationMode = mBatteryOptimizeUtils.getAppOptimizationMode();
initFooter();
- mExecutor.execute(
- () -> {
- final String packageName =
- BatteryUtils.getLoggingPackageName(
- getContext(), mBatteryOptimizeUtils.getPackageName());
- FeatureFactory.getFeatureFactory()
- .getMetricsFeatureProvider()
- .action(
- getContext(),
- SettingsEnums.OPEN_APP_BATTERY_USAGE,
- packageName);
- });
mLogStringBuilder = new StringBuilder("onResume mode = ").append(mOptimizationMode);
}
diff --git a/src/com/android/settings/fuelgauge/PowerBackgroundUsageDetail.java b/src/com/android/settings/fuelgauge/PowerBackgroundUsageDetail.java
index 2bf4d96..2067456 100644
--- a/src/com/android/settings/fuelgauge/PowerBackgroundUsageDetail.java
+++ b/src/com/android/settings/fuelgauge/PowerBackgroundUsageDetail.java
@@ -110,18 +110,6 @@
initHeader();
mOptimizationMode = mBatteryOptimizeUtils.getAppOptimizationMode();
initFooter();
- mExecutor.execute(
- () -> {
- String packageName =
- BatteryUtils.getLoggingPackageName(
- getContext(), mBatteryOptimizeUtils.getPackageName());
- FeatureFactory.getFeatureFactory()
- .getMetricsFeatureProvider()
- .action(
- getContext(),
- SettingsEnums.OPEN_POWER_USAGE_MANAGE_BACKGROUND,
- packageName);
- });
mLogStringBuilder = new StringBuilder("onResume mode = ").append(mOptimizationMode);
}
diff --git a/src/com/android/settings/fuelgauge/RestrictAppPreferenceController.java b/src/com/android/settings/fuelgauge/RestrictAppPreferenceController.java
index ea59afa..9969f24 100644
--- a/src/com/android/settings/fuelgauge/RestrictAppPreferenceController.java
+++ b/src/com/android/settings/fuelgauge/RestrictAppPreferenceController.java
@@ -84,7 +84,7 @@
RestrictedAppDetails.startRestrictedAppDetails(mPreferenceFragment, mAppInfos);
FeatureFactory.getFeatureFactory()
.getMetricsFeatureProvider()
- .action(mContext, SettingsEnums.OPEN_APP_RESTRICTED_LIST);
+ .action(mContext, SettingsEnums.ACTION_APP_RESTRICTED_LIST_MANAGED);
return true;
}