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

Commit f49190d7 authored by YUKAI HUNG's avatar YUKAI HUNG Committed by Android (Google) Code Review
Browse files

Merge "Refine consumed battery value formula for power component" into sc-dev

parents a1b818a8 4c29aad5
Loading
Loading
Loading
Loading
+2 −3
Original line number Diff line number Diff line
@@ -241,7 +241,7 @@ public class BatteryEntry {
        mBatteryConsumer = null;
        mIsHidden = false;
        mPowerComponentId = powerComponentId;
        mConsumedPower = devicePowerMah - appsPowerMah;
        mConsumedPower = devicePowerMah;
        mUsageDurationMs = usageDurationMs;
        mConsumerType = ConvertUtils.CONSUMER_TYPE_SYSTEM_BATTERY;

@@ -265,11 +265,10 @@ public class BatteryEntry {
        icon = context.getDrawable(iconId);
        name = powerComponentName;

        mConsumedPower = devicePowerMah - appsPowerMah;
        mConsumedPower = devicePowerMah;
        mConsumerType = ConvertUtils.CONSUMER_TYPE_SYSTEM_BATTERY;
    }


    public Drawable getIcon() {
        return icon;
    }