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

Commit bdaf46e7 authored by Wei Wang's avatar Wei Wang
Browse files

StatsCompanionService: register thermal event on all types

Previous stats only looks at SKIN type event, but with new version of
ATOM pushed we should record all event.

Test: Build
Bug: 119688911
Change-Id: I4b2da35f2c2a13ed7de2a9f3a9f6ec1644a2d675
parent b899f8ab
Loading
Loading
Loading
Loading
+2 −2
Original line number Original line Diff line number Diff line
@@ -338,8 +338,8 @@ public class StatsCompanionService extends IStatsCompanionService.Stub {
        if (b != null) {
        if (b != null) {
            sThermalService = IThermalService.Stub.asInterface(b);
            sThermalService = IThermalService.Stub.asInterface(b);
            try {
            try {
                sThermalService.registerThermalEventListenerWithType(
                sThermalService.registerThermalEventListener(
                        new ThermalEventListener(), Temperature.TYPE_SKIN);
                        new ThermalEventListener());
                Slog.i(TAG, "register thermal listener successfully");
                Slog.i(TAG, "register thermal listener successfully");
            } catch (RemoteException e) {
            } catch (RemoteException e) {
                // Should never happen.
                // Should never happen.