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

- ahhh modulo ...

Change-Id: Ief08594590480bfcecc09cad1f782e57b05d9786
This commit is contained in:
Fabrice Di Meglio
2014-07-24 20:13:56 -07:00
parent 8470857ee4
commit 3fbad42a4b

View File

@@ -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;