OSDN Git Service

Use min when comparing AM and PM text lengths
authorAlan Viverette <alanv@google.com>
Mon, 5 Jan 2015 19:28:12 +0000 (11:28 -0800)
committerAlan Viverette <alanv@google.com>
Mon, 5 Jan 2015 19:28:12 +0000 (11:28 -0800)
commitdd508581216ef3ef47bd474316232f269db43f03
tree9437cf8e67e20a85f29621e9062fb43a35eeb24f
parent4ae97d3632edf4fd00fe23b9a2304e4e0f2348b7
Use min when comparing AM and PM text lengths

Also cleans up code a little to prevent unnecessary re-computation
of lower-cased strings and use final where possible.

BUG: 18874813
Change-Id: I852eb7a281aed64ac36e95f32f5fa410f50abfa4
core/java/android/widget/TimePickerClockDelegate.java