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

Commit 9bf6f254 authored by yumeng's avatar yumeng Committed by Gerrit - the friendly Code Review server
Browse files

SettingsLib: the time is wrong in battery info view.

show the positive time in Math method.

Change-Id: I78fe3a1128494fb2822cfa0c5326d20ad33ab374
CRs-Fixed: 991999
parent a3238fe9
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -86,7 +86,7 @@ public class BatteryInfo {
        parse(mStats, remainingTimeUs, parserList);
        final Context context = view.getContext();
        String timeString = context.getString(R.string.charge_length_format,
                Formatter.formatShortElapsedTime(context, timePeriod));
                Formatter.formatShortElapsedTime(context, Math.abs(timePeriod)));
        String remaining = "";
        if (remainingTimeUs != 0) {
            remaining = context.getString(R.string.remaining_length_format,