Merge "Avoid unnecessary badging" into qt-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
501152f974
@@ -2764,6 +2764,9 @@ public class ApplicationPackageManager extends PackageManager {
|
||||
if (itemInfo.packageName != null) {
|
||||
dr = getDrawable(itemInfo.packageName, itemInfo.icon, appInfo);
|
||||
}
|
||||
if (dr == null && itemInfo != appInfo) {
|
||||
dr = loadUnbadgedItemIcon(appInfo, appInfo);
|
||||
}
|
||||
if (dr == null) {
|
||||
dr = itemInfo.loadDefaultIcon(this);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user