Android Patch: Workaround U_MISSING_RESOURCE_ERROR regression with invalid locale

This commit in ICU 63 causes libcore to crash with invalid Locale
https://github.com/unicode-org/icu/commit/b12a927c9365bb38831afbf76fdd0999f8f33deb

DateTimePatternGenerator::getCalendarTypeToUse pre-initializes the
result to be DT_DateTimeGregorianTag (gregorian) in case of any error.
Gregorian calendar is a good fallback since Android uses Gregorian
calendar for all languages and regions, unless BCP 47 extensions  e.g. *-u-ca-japanese

Long-term fix is tracked at https://unicode-org.atlassian.net/browse/ICU-20558

Test: LocaleDataTest
Test: StringTest
Bug: 129070579
Merged-In: Icc98ea7bf94494b303a3ec246818b8e91d21a207
Change-Id: Icc98ea7bf94494b303a3ec246818b8e91d21a207
(cherry picked from commit 14493602686c43be21d1a656b018ee83f04fbf29)
1 file changed