Skip to content

Commit

Permalink
Disable digit 4 in 24h-format and digit 3 for 12h-format at hour index
Browse files Browse the repository at this point in the history
  • Loading branch information
maxkeppeler committed Dec 13, 2020
1 parent ba69777 commit 4a53f47
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -177,10 +177,10 @@ internal class ClockTimeSelector(
enableDigits()
if (is24HoursView) {
if (hoursBuffer[0] == '2')
disableDigits(4 until 9)
disableDigits(3 until 9)
} else {
if (hoursBuffer[0] == '1' || hoursBuffer[0] == '2')
disableDigits(3 until 9)
disableDigits(2 until 9)
else if (hoursBuffer[0] == '0') disableDigits()
}
}
Expand Down

0 comments on commit 4a53f47

Please # to comment.