@Override
  public boolean onTouchEvent(MotionEvent event) {
    super.onTouchEvent(event);

    if (event.getAction() == MotionEvent.ACTION_UP) {

      if (dialogFrameMyTake.getVisibility() == View.VISIBLE) {
        dialogFrameCommon.setVisibility(View.VISIBLE);
        dialogFrameMyTake.setVisibility(View.GONE);
        uncheckAllRadioButtons();
      } else if (dialogFrameRate.getVisibility() == View.VISIBLE) {
        dialogFrameCommon.setVisibility(View.VISIBLE);
        dialogFrameRate.setVisibility(View.GONE);
        uncheckAllRadioButtons();
      } else if (dialogFrameSendToKindle.getVisibility() == View.VISIBLE) {
        dialogFrameCommon.setVisibility(View.VISIBLE);
        dialogFrameSendToKindle.setVisibility(View.GONE);
        uncheckAllRadioButtons();
      } else if (dialogFrameLend.getVisibility() == View.VISIBLE) {
        dialogFrameCommon.setVisibility(View.VISIBLE);
        dialogFrameLend.setVisibility(View.GONE);
        uncheckAllRadioButtons();
      } else if (this.getVisibility() == View.VISIBLE) {
        dialogFrameCommon.setVisibility(View.GONE);
        this.setVisibility(View.GONE);
      }
    }

    return true;
  }
 public boolean isChildDialogsVisible() {
   return (dialogFrameMyTake.getVisibility() == View.VISIBLE
       || dialogFrameRate.getVisibility() == View.VISIBLE
       || dialogFrameSendToKindle.getVisibility() == View.VISIBLE
       || dialogFrameLend.getVisibility() == View.VISIBLE);
 }