public static void applyDecidedIconOrSetGone ( ImageHolder imageHolder , ImageView imageView , int iconColor , boolean tint ) { if ( imageHolder != null && imageView != null ) { Drawable drawable = ImageHolder . decideIcon ( imageHolder , imageView . getContext ( ) , iconColor , tint ) ; if ( drawable != null ) { imageView . setImageDrawable ( drawable ) ; imageView . setVisibility ( View . VISIBLE ) ; } else if ( imageHolder . getBitmap ( ) != null ) { imageView . setImageBitmap ( imageHolder . getBitmap ( ) ) ; imageView . setVisibility ( View . VISIBLE ) ; } else { imageView . setVisibility ( View . GONE ) ; } } else if ( imageView != null ) { imageView . setVisibility ( View . GONE ) ; } }
decides which icon to apply or hide this view