OSDN Git Service

Fix TimePicker keyboard UI num digits for min
authorDavid Ogutu <ogutu@google.com>
Mon, 5 Feb 2018 22:08:11 +0000 (17:08 -0500)
committerDavid Ogutu <ogutu@google.com>
Tue, 6 Feb 2018 14:22:20 +0000 (09:22 -0500)
commit93ac6d01bb8c086aeb77daf862e0478ad8a0ccb3
tree180aa22f470506ffb84dc0b897cbec4ce0153961
parent348f19e6a3baccd76056e1d4cc264e23bacd8223
Fix TimePicker keyboard UI num digits for min

Force the minutes to always format to 2 digits. This is a temporary fix
that's not quite fully Locale aware but fixes UI issue. Will need to
refactor code to seperate Locale info, share code with non-keyboard UI
and use more native Locale functions to determine number of digits.

Test: Manual https://drive.google.com/file/d/1iabh2Zzl0YRhj17gbVKr8GvVDXEHUnWI/view?usp=sharing
Bug: 72041032
Change-Id: I0eb479b9aece4726db7bf7fba04dc50ad0f175c5
core/java/android/widget/TextInputTimePickerView.java