Loading core/java/android/util/IconDrawableFactory.java +1 −1 Original line number Diff line number Diff line Loading @@ -48,7 +48,7 @@ public class IconDrawableFactory { } protected boolean needsBadging(ApplicationInfo appInfo, @UserIdInt int userId) { return appInfo.isInstantApp() || mUm.isManagedProfile(userId); return appInfo.isInstantApp() || mUm.hasBadge(userId); } @UnsupportedAppUsage Loading services/appwidget/java/com/android/server/appwidget/AppWidgetServiceImpl.java +3 −4 Original line number Diff line number Diff line Loading @@ -630,8 +630,7 @@ class AppWidgetServiceImpl extends IAppWidgetService.Stub implements WidgetBacku final long identity = Binder.clearCallingIdentity(); try { if (provider.maskedBySuspendedPackage) { UserInfo userInfo = mUserManager.getUserInfo(providerUserId); showBadge = userInfo.isManagedProfile(); showBadge = mUserManager.hasBadge(providerUserId); final String suspendingPackage = mPackageManagerInternal.getSuspendingPackage( providerPackage, providerUserId); if (PLATFORM_PACKAGE_NAME.equals(suspendingPackage)) { Loading Loading @@ -3619,7 +3618,7 @@ class AppWidgetServiceImpl extends IAppWidgetService.Stub implements WidgetBacku long token = Binder.clearCallingIdentity(); try { UserInfo userInfo = mUserManager.getUserInfo(userId); if (userInfo != null && userInfo.isManagedProfile()) { if (userInfo != null && userInfo.isProfile()) { UserInfo parentInfo = mUserManager.getProfileParent(userId); if (parentInfo != null && !isUserRunningAndUnlocked(parentInfo.getUserHandle().getIdentifier())) { Loading @@ -3634,7 +3633,7 @@ class AppWidgetServiceImpl extends IAppWidgetService.Stub implements WidgetBacku private boolean isProfileWithUnlockedParent(int userId) { UserInfo userInfo = mUserManager.getUserInfo(userId); if (userInfo != null && userInfo.isManagedProfile()) { if (userInfo != null && userInfo.isProfile()) { UserInfo parentInfo = mUserManager.getProfileParent(userId); if (parentInfo != null && mUserManager.isUserUnlockingOrUnlocked(parentInfo.getUserHandle())) { Loading Loading
core/java/android/util/IconDrawableFactory.java +1 −1 Original line number Diff line number Diff line Loading @@ -48,7 +48,7 @@ public class IconDrawableFactory { } protected boolean needsBadging(ApplicationInfo appInfo, @UserIdInt int userId) { return appInfo.isInstantApp() || mUm.isManagedProfile(userId); return appInfo.isInstantApp() || mUm.hasBadge(userId); } @UnsupportedAppUsage Loading
services/appwidget/java/com/android/server/appwidget/AppWidgetServiceImpl.java +3 −4 Original line number Diff line number Diff line Loading @@ -630,8 +630,7 @@ class AppWidgetServiceImpl extends IAppWidgetService.Stub implements WidgetBacku final long identity = Binder.clearCallingIdentity(); try { if (provider.maskedBySuspendedPackage) { UserInfo userInfo = mUserManager.getUserInfo(providerUserId); showBadge = userInfo.isManagedProfile(); showBadge = mUserManager.hasBadge(providerUserId); final String suspendingPackage = mPackageManagerInternal.getSuspendingPackage( providerPackage, providerUserId); if (PLATFORM_PACKAGE_NAME.equals(suspendingPackage)) { Loading Loading @@ -3619,7 +3618,7 @@ class AppWidgetServiceImpl extends IAppWidgetService.Stub implements WidgetBacku long token = Binder.clearCallingIdentity(); try { UserInfo userInfo = mUserManager.getUserInfo(userId); if (userInfo != null && userInfo.isManagedProfile()) { if (userInfo != null && userInfo.isProfile()) { UserInfo parentInfo = mUserManager.getProfileParent(userId); if (parentInfo != null && !isUserRunningAndUnlocked(parentInfo.getUserHandle().getIdentifier())) { Loading @@ -3634,7 +3633,7 @@ class AppWidgetServiceImpl extends IAppWidgetService.Stub implements WidgetBacku private boolean isProfileWithUnlockedParent(int userId) { UserInfo userInfo = mUserManager.getUserInfo(userId); if (userInfo != null && userInfo.isManagedProfile()) { if (userInfo != null && userInfo.isProfile()) { UserInfo parentInfo = mUserManager.getProfileParent(userId); if (parentInfo != null && mUserManager.isUserUnlockingOrUnlocked(parentInfo.getUserHandle())) { Loading