diff options
author | Victor Chang <vichang@google.com> | 2020-10-13 19:12:35 +0100 |
---|---|---|
committer | Victor Chang <vichang@google.com> | 2020-10-14 14:10:01 +0100 |
commit | 02d0c76bc65600defa4e9b7875959f956e225bb5 (patch) | |
tree | 266c1b87b897a8f891cd9eea604c85598d475d0c /rs/java/android/renderscript/ProgramVertexFixedFunction.java | |
parent | 2046a9dced2fef8261cc09b7a2fac188e70677e4 (diff) |
Allow the skeleton of "jmma" in DateFormat.getBestDateTimePattern()
'a' and 'j' specify the intent to use 12-hour format,
and the locale default 12-hour format, and they shouldn't be used
in the same skeleton, because they contradict to each other.
A skeleton, e.g. "jmma", is mapped into "ahmma" internally
by #mapSkeletonMetacharacters, and thus the internal skeleton
has duplicated fields "a".
This is a regression when we moved the implementation of
android.text.format.DateFormat#getBestPattern() from
udatpg_getBestPattern in ICU4C to ICU4j DateTimePatternGenerator
in the CL https://r.android.com/1355735.
The expected pattern generated from skeleton of "jmma" is
"h:mm a".
Bug: 170233598
Test: DateFormatTest
Change-Id: I13929f4b5bc66aaa90e0cef666cf52d7c32122ac
Diffstat (limited to 'rs/java/android/renderscript/ProgramVertexFixedFunction.java')
0 files changed, 0 insertions, 0 deletions