Implements additional battery info menu behavior.

Bug: 33352540
Test: Updated existing tests.
Change-Id: I990029d2ea9032301362d614959259965b8ecb10
This commit is contained in:
Jaewoong Jung
2016-12-19 18:39:41 -08:00
parent a95be3f49b
commit 6a43a06cac
3 changed files with 46 additions and 5 deletions

View File

@@ -175,6 +175,11 @@ public class PowerUsageSummary extends PowerUsageBase {
sa.startPreferencePanel(ManageApplications.class.getName(), args,
R.string.high_power_apps, null, null, 0);
return true;
case MENU_ADDITIONAL_BATTERY_INFO:
startActivity(FeatureFactory.getFactory(getContext())
.getPowerUsageFeatureProvider(getContext())
.getAdditionalBatteryInfoIntent());
return true;
default:
return super.onOptionsItemSelected(item);
}