shadows/framework/src/main/java/org/robolectric/shadows/ShadowApplicationPackageManager.java
@Implementation(minSdk = LOLLIPOP_MR1)
  protected Drawable loadUnbadgedItemIcon(PackageItemInfo itemInfo, ApplicationInfo appInfo) {
    Drawable result = unbadgedApplicationIcons.get(itemInfo.packageName);
    if (result != null) {
      return result;
    }
    return Shadow.directlyOn(realObject, ApplicationPackageManager.class)
        .loadUnbadgedItemIcon(itemInfo, appInfo);
  }
@Implementation(minSdk = LOLLIPOP_MR1)
  protected Drawable loadUnbadgedItemIcon(PackageItemInfo itemInfo, ApplicationInfo appInfo) {
    Drawable result = unbadgedApplicationIcons.get(itemInfo.packageName);
    if (result != null) {
      return result;
    }
    return Shadow.directlyOn(realObject, ApplicationPackageManager.class)
        .loadUnbadgedItemIcon(itemInfo, appInfo);
  }
@ Implementation ( minSdk = LOLLIPOP_MR1 ) protected Drawable loadUnbadgedItemIcon ( PackageItemInfo itemInfo , ApplicationInfo appInfo ) { Drawable result = unbadgedApplicationIcons . get ( itemInfo . packageName ) ; if ( result != null ) { return result ; } return Shadow . directlyOn ( realObject , ApplicationPackageManager . class ) . loadUnbadgedItemIcon ( itemInfo , appInfo ) ; }
Gets the unbadged icon based on the values set by {@link
ShadowPackageManager#setUnbadgedApplicationIcon} or returns null if nothing has been set.
Gets the unbadged icon based on the values set by {