Smear screen power usage based on activity time.

Bug: 38328636
Test: RunSettingsRoboTests
Change-Id: I8e7baadcd88a8e9d674f5bc8d8e42e0f3953c98a
This commit is contained in:
jackqdyulei
2017-05-16 16:09:14 -07:00
parent d6aa9f3454
commit 2b923ce44f
5 changed files with 113 additions and 9 deletions

View File

@@ -287,7 +287,7 @@ public class PowerUsageSummary extends PowerUsageBase {
item.setTitle(mShowAllApps ? R.string.hide_extra_apps : R.string.show_all_apps);
metricsFeatureProvider.action(context,
MetricsEvent.ACTION_SETTINGS_MENU_BATTERY_APPS_TOGGLE, mShowAllApps);
refreshUi();
restartBatteryStatsLoader();
return true;
default:
return super.onOptionsItemSelected(item);