private void show(boolean show){
  if (show) {
    if (mXFade != null) {
      mXFade.cancel();
    }
    mState=STATE_PIE;
    mCurrentItem=null;
    PieItem root=getRoot();
    for (    PieItem openItem : mOpen) {
      if (openItem.hasItems()) {
        for (        PieItem item : openItem.getItems()) {
          item.setSelected(false);
        }
      }
    }
    mLabel.setText("");
    mOpen.clear();
    mOpen.add(root);
    layoutPie();
    fadeIn();
  }
 else {
    mState=STATE_IDLE;
    mTapMode=false;
    if (mXFade != null) {
      mXFade.cancel();
    }
    if (mLabel != null) {
      mLabel.setText("");
    }
  }
  setVisible(show);
  mHandler.sendEmptyMessage(show ? MSG_OPEN : MSG_CLOSE);
}

private void show ( boolean show ) { if ( show ) { if ( mXFade != null ) { mXFade . cancel ( ) ; } mState = STATE_PIE ; mCurrentItem = null ; PieItem root = getRoot ( ) ; for ( PieItem openItem : mOpen ) { if ( openItem . hasItems ( ) ) { for ( PieItem item : openItem . getItems ( ) ) { item . setSelected ( false ) ; } } } mLabel . setText ( "" ) ; mOpen . clear ( ) ; mOpen . add ( root ) ; layoutPie ( ) ; fadeIn ( ) ; } else { mState = STATE_IDLE ; mTapMode = false ; if ( mXFade != null ) { mXFade . cancel ( ) ; } if ( mLabel != null ) { mLabel . setText ( "" ) ; } } setVisible ( show ) ; mHandler . sendEmptyMessage ( show ? MSG_OPEN : MSG_CLOSE ) ; }
guaranteed has center set
