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

Commit 24707ec0 authored by ykhung's avatar ykhung Committed by Automerger Merge Worker
Browse files

Use en-dash in the time range instead of a hyphen for different format am: 91adbd3b

parents 83a47bfa 91adbd3b
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -508,7 +508,9 @@ public class BatteryChartPreferenceController extends AbstractPreferenceControll
            mBatteryHistoryKeys[mTrapezoidIndex * 2], mIs24HourFormat);
        final String toHour = ConvertUtils.utcToLocalTimeHour(mPrefContext,
            mBatteryHistoryKeys[(mTrapezoidIndex + 1) * 2], mIs24HourFormat);
        return String.format("%s - %s", fromHour, toHour);
        return mIs24HourFormat
            ? String.format("%s–%s", fromHour, toHour)
            : String.format("%s – %s", fromHour, toHour);
    }

    @VisibleForTesting