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

Commit 022cc297 authored by Wei Wang's avatar Wei Wang Committed by android-build-merger
Browse files

Merge "Thermal: send callback even if no HAL exist." into qt-dev

am: 2deeadae

Change-Id: I9de19ed8eecc92cca610c5d5ace138af9b9a6c70
parents 1e1e1488 2deeadae
Loading
Loading
Loading
Loading
+6 −12
Original line number Diff line number Diff line
@@ -312,10 +312,8 @@ public class ThermalManagerService extends SystemService {
                    if (!mThermalEventListeners.register(listener, null)) {
                        return false;
                    }
                    if (mHalReady.get()) {
                    // Notify its callback after new client registered.
                    postEventListenerCurrentTemperatures(listener, null);
                    }
                    return true;
                } finally {
                    Binder.restoreCallingIdentity(token);
@@ -334,10 +332,8 @@ public class ThermalManagerService extends SystemService {
                    if (!mThermalEventListeners.register(listener, new Integer(type))) {
                        return false;
                    }
                    if (mHalReady.get()) {
                    // Notify its callback after new client registered.
                    postEventListenerCurrentTemperatures(listener, new Integer(type));
                    }
                    return true;
                } finally {
                    Binder.restoreCallingIdentity(token);
@@ -398,10 +394,8 @@ public class ThermalManagerService extends SystemService {
                    if (!mThermalStatusListeners.register(listener)) {
                        return false;
                    }
                    if (mHalReady.get()) {
                    // Notify its callback after new client registered.
                    postStatusListener(listener);
                    }
                    return true;
                } finally {
                    Binder.restoreCallingIdentity(token);