Merge "[Panlingual] Improve conditions of supporting app locale." into tm-qpr-dev

This commit is contained in:
Tom Hsu
2022-08-25 06:24:12 +00:00
committed by Android (Google) Code Review

View File

@@ -100,8 +100,8 @@ public class AppLocaleUtil {
*/ */
public static boolean isAppLocaleSupported(Context context, String packageName) { public static boolean isAppLocaleSupported(Context context, String packageName) {
LocaleList localeList = getPackageLocales(context, packageName); LocaleList localeList = getPackageLocales(context, packageName);
if (localeList != null && localeList.size() > 0) { if (localeList != null) {
return true; return localeList.size() > 0;
} }
if (FeatureFlagUtils.isEnabled( if (FeatureFlagUtils.isEnabled(