[Panlingual] Fix shall not show app with empty LocaleConfig.

Bug: b/231990625
Test: local
Change-Id: Ia4747b777ee5228b57c0293d366c77e91ae5bee0
This commit is contained in:
tom hsu
2022-05-12 01:50:13 +08:00
parent 695a47e469
commit 89f48dce82

View File

@@ -99,7 +99,8 @@ public class AppLocaleUtil {
* Check the function of per app language is supported by current application.
*/
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;
}