Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit a31b0cf8 authored by Mike Ma's avatar Mike Ma Committed by android-build-merger
Browse files

Merge "Fix a NPE in BatteryStatsImpl" into pi-dev

am: 0587bdd5

Change-Id: I3bcc5d38995a38f068df6251826050fd59325e80
parents cc8dc1d6 0587bdd5
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -4021,7 +4021,9 @@ public class BatteryStatsImpl extends BatteryStats {
        try {
            IBatteryPropertiesRegistrar registrar = IBatteryPropertiesRegistrar.Stub.asInterface(
                    ServiceManager.getService("batteryproperties"));
            if (registrar != null) {
                registrar.scheduleUpdate();
            }
        } catch (RemoteException e) {
            // Ignore.
        }