Move legacy hide applications in usage screen list to SettingsGoogle

Bug: 195306545
Test: make SettingsRoboTests
Change-Id: Iccb3530c40bc32c20d74d65aa3f26eb2d6719106
This commit is contained in:
ykhung
2021-09-01 18:01:50 +08:00
parent 2401ec4235
commit 0a03758738
6 changed files with 26 additions and 19 deletions

View File

@@ -123,10 +123,12 @@ public class BatteryChartPreferenceController extends AbstractPreferenceControll
mIs24HourFormat = DateFormat.is24HourFormat(context);
mNotAllowShowSummaryPackages = context.getResources()
.getTextArray(R.array.allowlist_hide_summary_in_battery_usage);
mNotAllowShowEntryPackages = context.getResources()
.getTextArray(R.array.allowlist_hide_entry_in_battery_usage);
mMetricsFeatureProvider =
FeatureFactory.getFactory(mContext).getMetricsFeatureProvider();
mNotAllowShowEntryPackages =
FeatureFactory.getFactory(mContext)
.getPowerUsageFeatureProvider(context)
.getHideApplicationEntries(mContext);
if (lifecycle != null) {
lifecycle.addObserver(this);
}