Android patch: Allow duplicated fields in DateTimePatternGenerator
The original patch can be found at
https://r.android.com/1458480
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
Change-Id: Icff8860add31bc46a7f75569a344d36fb3c63992
1 file changed