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

Commit 6d5ce9e2 authored by Todd Poynor's avatar Todd Poynor
Browse files

thermalservice: future-proofing fixup to Temperature constructor

Change the default constructor to leverage the constructor with params
specified, to avoid future code duplication if more logic is added to
constructors in the future.

Test: manual: marlin with temporary java thermal event listener
Bug: 30982366
Change-Id: I0be55fe2561f606ddf1bcebb98ae7e1120ff8d2d
parent 84540a16
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -30,8 +30,8 @@ public class Temperature implements Parcelable {
    private int mType;

    public Temperature() {
        mType = Integer.MIN_VALUE;
        mValue = HardwarePropertiesManager.UNDEFINED_TEMPERATURE;
        this(HardwarePropertiesManager.UNDEFINED_TEMPERATURE,
            Integer.MIN_VALUE);
    }

    public Temperature(float value, int type) {