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

Commit 3fbad42a authored by Fabrice Di Meglio's avatar Fabrice Di Meglio
Browse files

Fix bug #16307124 Not able to select hour 12 in TimePicker with 24-hour time enabled

- ahhh modulo ...

Change-Id: Ief08594590480bfcecc09cad1f782e57b05d9786
parent 8470857e
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -518,6 +518,9 @@ public class RadialTimePickerView extends View implements View.OnTouchListener {
        if (mIs24HourMode) {
            if (mIsOnInnerCircle) {
                hours = hours % 12;
                if (hours == 0) {
                    hours = 12;
                }
            } else {
                if (hours != 0) {
                    hours += 12;