Add missing runtime check for LauncherApps

This commit is contained in:
Markus Fisch
2026-03-01 21:44:48 +01:00
parent a83498623c
commit c95c2e4fbd

View File

@@ -739,6 +739,9 @@ public class Apps {
}
private UserHandle findPrivateProfileUser(Context context) {
if (!HAS_LAUNCHER_APP) {
return null;
}
LauncherApps la = getLauncherApps(context);
UserManager um = getUserManager(context);
for (UserHandle profile : getProfiles(um)) {