Merge "Deprecate the use of ICU.addLikelySubtags"

This commit is contained in:
vichang
2019-11-21 11:25:28 +00:00
committed by Gerrit Code Review

View File

@@ -208,7 +208,7 @@ public class LocaleHelper {
* @return the maximized Locale instance.
*/
public static Locale addLikelySubtags(Locale locale) {
return libcore.icu.ICU.addLikelySubtags(locale);
return ULocale.addLikelySubtags(ULocale.forLocale(locale)).toLocale();
}
/**