@Override
  protected void onAttachedToWindow() {
    super.onAttachedToWindow();
    maybeOverrideVisibilityHandling();
    onAttach();
  }
Returns whether the controller is set or not.
drawee/src/main/java/com/facebook/drawee/view/DraweeView.java