code: private void updateIcon() {
  		// Define the icon.
  		int icon = R.drawable.document_gray;
  		if(this.selectable) {
  			icon = (this.file != null && file.isDirectory())? R.drawable.folder : R.drawable.document;
  		}
  
  		// Set the icon.
  		this.icon.setImageDrawable(getResources().getDrawable( icon ));
  
  		// Change the color of the text.
  		if(icon != R.drawable.document_gray) {
  			this.label.setTextColor(getResources().getColor(R.color.daidalos_active_file));
  		} else {
  			this.label.setTextColor(getResources().getColor(R.color.daidalos_inactive_file));
  		}
  	}
docs: Updates the icon according to if the file is a folder and if it can be selected.