summaryrefslogtreecommitdiff
path: root/core/java/android/widget/TextInputTimePickerView.java
Commit message (Collapse)AuthorAgeFilesLines
* Show hint instead of auto-populating timepicker.David Ogutu2018-03-211-4/+29
| | | | | | | | | | Textboxes will now show hint text if not set rather than populating text. Also changed validation text to have similar behaviour to the radial setter. Change-Id: I8ce55d7d7898be9b0a842d3f1f9a2e8deb01f5b3 Test: manually https://drive.google.com/file/d/1bD_dbIF9dgOr1B3EuSMBlJY9M97Z19vc/view?usp=sharing Fixes: 36863667
* Auto-advance after hour in entered in timepicker.David Ogutu2018-03-151-1/+8
| | | | | | | | Only advances when no accessibility services are enabled. Test: manually Change-Id: If2ef9062391fd628cc86f49d356a46a86f82e4e9 Fixes: 36863243
* Fix TimePicker keyboard UI num digits for minDavid Ogutu2018-02-061-3/+4
| | | | | | | | | | | 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
* Make TextInputTimePickerView use localized inputRoozbeh Pournader2017-07-131-0/+4
| | | | | | | | | | | | Previously, TextInputTimePickerView used the default numeric IME, which could result in cases where the digits displayed in the text fields were native, but the IME showed ASCII digits resulting in a mix. Now we use setImeHintLocales to hint that we need a localized IME. Change-Id: Ic4041dcc65a31bd00741c6d96d8cbc5dac9d77c8 Fixes: 63650251 Test: Manual (tested under en-US and ar-BH locales)
* Remove unnecessary casts on calls to findViewByIdAlan Viverette2017-04-141-7/+7
| | | | | | | | Just frameworks/ this time. More paths to come. Bug: 24137209 Test: make -j32 Change-Id: Iff27abd26fa43296ac2fff8f534fc6742d2ae80c
* Fix toggling of AM/PM of TimePicker using hardware keyboard.Aurimas Liutikas2017-02-221-3/+3
| | | | | | | | | | | | | Set AM/PM mode before setting hour in TextInputTimePickerView. This is needed so we know exactly which it is when we are using 12 hour clock. Not setting it early was causing TextInputTimePickerView to update TimePicker with the hour that was not offset correctly based on AM/PM state. Test: existing tests caught this - TimePickerTest#testKeyboardInputModeClockAmPm verified locally that this test now passes. Bug: 35262830 Change-Id: I7e912320cb5a72c5d9d4e80dc0b42deb651f2636
* Adding text input mode to TimePicker.Aurimas Liutikas2017-02-061-0/+249
Test: Tests will have a follow up CL. Bug:30044800 Change-Id: I71a0fba97026da76251768016edf1b159617abb9