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

Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Settings/+/18281656

Change-Id: I13f32b3b0c13285af8930d867184f5758a259048
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
Tom Hsu
2022-05-12 15:01:48 +00:00
committed by Automerger Merge Worker

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;
}