/// <summary> /// Gets the left-hand side icon that will be used for the current suggestion /// if the suggestion contains an icon column but no icon or a broken icon. /// </summary> /// <remarks> /// Gets the left-hand side icon that will be used for the current suggestion /// if the suggestion contains an icon column but no icon or a broken icon. /// </remarks> /// <param name="cursor">A cursor positioned at the current suggestion.</param> /// <returns>A non-null drawable.</returns> private android.graphics.drawable.Drawable getDefaultIcon1(android.database.Cursor cursor) { // Check the component that gave us the suggestion android.graphics.drawable.Drawable drawable = getActivityIconWithCache(mSearchable .getSearchActivity()); if (drawable != null) { return(drawable); } // Fall back to a default icon return(mContext.getPackageManager().getDefaultActivityIcon()); }