imageViewOne.getVisibility() == 0
use this instead:
imageViewOne.getDrawable() == null
From documentation:
/**
* Gets the current Drawable, or null if no Drawable has been
* assigned.
*
* @return the view’s drawable, or null if no drawable has been
* assigned.
*
*/
public Drawable getDrawable() {}