Merge "Avoid getting app locale config for each app" into tm-dev am: 9d6cf4255d
am: 4d728de8bc
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Settings/+/18456663 Change-Id: Ic52667662f873194ff4000b59144fa30223bbc33 Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
@@ -49,17 +49,17 @@ public class AppLocaleUtil {
|
||||
boolean isDisallowedPackage = isDisallowedPackage(context, packageName);
|
||||
boolean hasLauncherEntry = hasLauncherEntry(packageName, infos);
|
||||
boolean isSignedWithPlatformKey = isSignedWithPlatformKey(context, packageName);
|
||||
boolean isAppLocaleSupported = isAppLocaleSupported(context, packageName);
|
||||
boolean canDisplay = !isDisallowedPackage
|
||||
&& !isSignedWithPlatformKey
|
||||
&& hasLauncherEntry
|
||||
&& isAppLocaleSupported(context, packageName);
|
||||
|
||||
Log.i(TAG, "Can display preference - [" + packageName + "] :"
|
||||
+ " isDisallowedPackage : " + isDisallowedPackage
|
||||
+ " / isSignedWithPlatformKey : " + isSignedWithPlatformKey
|
||||
+ " / hasLauncherEntry : " + hasLauncherEntry
|
||||
+ " / isAppLocaleSupported : " + isAppLocaleSupported);
|
||||
|
||||
return !isDisallowedPackage
|
||||
&& !isSignedWithPlatformKey
|
||||
&& hasLauncherEntry
|
||||
&& isAppLocaleSupported;
|
||||
+ " / canDisplay : " + canDisplay);
|
||||
return canDisplay;
|
||||
}
|
||||
|
||||
private static boolean isDisallowedPackage(Context context, String packageName) {
|
||||
|
Reference in New Issue
Block a user