Merge "Use hasBadge instead of isManagedProfile"

This commit is contained in:
Adam Bookatz
2020-10-08 17:39:58 +00:00
committed by Android (Google) Code Review
2 changed files with 4 additions and 5 deletions

View File

@@ -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