Esempio n. 1
0
 protected internal override android.graphics.drawable.Drawable loadDefaultIcon(android.content.pm.PackageManager
                                                                                pm)
 {
     if ((flags & FLAG_EXTERNAL_STORAGE) != 0 && isPackageUnavailable(pm))
     {
         return(android.content.res.Resources.getSystem().getDrawable([email protected].
                                                                      drawable.sym_app_on_sd_unavailable_icon));
     }
     return(pm.getDefaultActivityIcon());
 }
Esempio n. 2
0
 /// <summary>Retrieve the default graphical icon associated with this item.</summary>
 /// <remarks>Retrieve the default graphical icon associated with this item.</remarks>
 /// <param name="pm">
 /// A PackageManager from which the icon can be loaded; usually
 /// the PackageManager from which you originally retrieved this item.
 /// </param>
 /// <returns>
 /// Returns a Drawable containing the item's default icon
 /// such as the default activity icon.
 /// </returns>
 /// <hide></hide>
 protected internal virtual android.graphics.drawable.Drawable loadDefaultIcon(android.content.pm.PackageManager
                                                                               pm)
 {
     return(pm.getDefaultActivityIcon());
 }