Merge "Fix issue #9860494: Waiting for service batteryinfo..."

This commit is contained in:
Dianne Hackborn 2013-07-16 01:15:44 +00:00 committed by Android (Google) Code Review
commit 0fd3bf4652

View File

@ -33,7 +33,7 @@ namespace android {
BatteryService::BatteryService() { BatteryService::BatteryService() {
const sp<IServiceManager> sm(defaultServiceManager()); const sp<IServiceManager> sm(defaultServiceManager());
if (sm != NULL) { if (sm != NULL) {
const String16 name("batteryinfo"); const String16 name("batterystats");
mBatteryStatService = sm->getService(name); mBatteryStatService = sm->getService(name);
} }
} }