Merge "Migrate PackageManagerHelper to MainThreadInitializedObject" into main

This commit is contained in:
Winson Chung authored and Android (Google) Code Review committed 2024-04-23 18:10:56 +00:00
commit a9ccb34d1c
13 files changed
+47 -34

No files matched your search

@@ -70,7 +70,7 @@ public final class TaskUtils {
return "";
}
UserHandle user = UserHandle.of(userId);
ApplicationInfo applicationInfo = new PackageManagerHelper(context)
ApplicationInfo applicationInfo = PackageManagerHelper.INSTANCE.get(context)
.getApplicationInfo(packageName, user, 0);
if (applicationInfo == null) {
Log.e(TAG, "Failed to get title for userId=" + userId + ", packageName=" + packageName);