Merge "Fix a NPE in BatteryStatsImpl" into pi-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
0587bdd59f
@@ -4021,7 +4021,9 @@ public class BatteryStatsImpl extends BatteryStats {
|
|||||||
try {
|
try {
|
||||||
IBatteryPropertiesRegistrar registrar = IBatteryPropertiesRegistrar.Stub.asInterface(
|
IBatteryPropertiesRegistrar registrar = IBatteryPropertiesRegistrar.Stub.asInterface(
|
||||||
ServiceManager.getService("batteryproperties"));
|
ServiceManager.getService("batteryproperties"));
|
||||||
|
if (registrar != null) {
|
||||||
registrar.scheduleUpdate();
|
registrar.scheduleUpdate();
|
||||||
|
}
|
||||||
} catch (RemoteException e) {
|
} catch (RemoteException e) {
|
||||||
// Ignore.
|
// Ignore.
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user