Merge "[Panlingual] Fix shall not show app with empty LocaleConfig." into tm-dev

This commit is contained in:
Tom Hsu
2022-05-12 14:38:37 +00:00
committed by Android (Google) Code Review

View File

@@ -99,7 +99,8 @@ public class AppLocaleUtil {
* Check the function of per app language is supported by current application. * Check the function of per app language is supported by current application.
*/ */
public static boolean isAppLocaleSupported(Context context, String packageName) { public static boolean isAppLocaleSupported(Context context, String packageName) {
if (getPackageLocales(context, packageName) != null) { LocaleList localeList = getPackageLocales(context, packageName);
if (localeList != null && localeList.size() > 0) {
return true; return true;
} }