diff options
author | newt <newt@chromium.org> | 2016-01-25 17:30:15 -0800 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2016-01-26 01:31:20 +0000 |
commit | 9e226039ff46dbc40f8529e2b70a577230d4d9dd (patch) | |
tree | a863fcc64fa9ce9a4812061b025c4e210c44a648 /BUILD.gn | |
parent | c9395dc7461d2f65131f525b933ec51cb04b09bc (diff) | |
download | chromium_src-9e226039ff46dbc40f8529e2b70a577230d4d9dd.zip chromium_src-9e226039ff46dbc40f8529e2b70a577230d4d9dd.tar.gz chromium_src-9e226039ff46dbc40f8529e2b70a577230d4d9dd.tar.bz2 |
Fix date picker performance issues, crash, and incorrect pre-1582 dates.
This cleans up the DateDialogNormalizer, fixing three issues in the
process:
1. The date picker is now way faster on L devices. This works around a
performance issue with the Android DatePicker in L, where large
min/max ranges consume tons of memory and time (many seconds). The
workaround is simply to limit the date picker's range to at most
5000 years before and after the initial selected date. In practice,
this doesn't affect users since manually scrolling through 5000
years is infeasible.
2. This fixes a crash when the min date is after 2100 on pre-L devices.
On KK and earlier, calling DatePicker.setMinDate() with a date
that's greater than the current max date (which defaults to 2100)
causes a crash. The fix is to set the DatePicker's min and max dates
in such an order that the min is always less than the max.
3. This fixes an issue where min/max dates before 1582 were off by 10
days due to incorrect handling of the Gregorian/Julian switch.
This also revamps DateDialogNormalizerTest and converts it to a
Robolectric test.
BUG=441060,580385,580388
Review URL: https://codereview.chromium.org/1622773002
Cr-Commit-Position: refs/heads/master@{#371404}
Diffstat (limited to 'BUILD.gn')
-rw-r--r-- | BUILD.gn | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -290,6 +290,7 @@ group("both_gn_and_gyp") { "//tools/android/kerberos/SpnegoAuthenticator:spnego_authenticator_apk", "//tools/cygprofile:cygprofile_unittests", "//tools/imagediff($host_toolchain)", + "//ui/android:ui_junit_tests", ] deps -= [ "//net:net_perftests", |