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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user