private void calcCurrentItem(){
  int pointerAngle=(mCurrentItemAngle + 360 + mPieRotation) % 360;
  for (int i=0; i < mData.size(); ++i) {
    Item it=mData.get(i);
    if (it.mStartAngle <= pointerAngle && pointerAngle <= it.mEndAngle) {
      if (i != mCurrentItem) {
        setCurrentItem(i,false);
      }
      break;
    }
  }
}

private void calcCurrentItem ( ) { int pointerAngle = ( mCurrentItemAngle + 360 + mPieRotation ) % 360 ; for ( int i = 0 ; i < mData . size ( ) ; ++ i ) { Item it = mData . get ( i ) ; if ( it . mStartAngle <= pointerAngle && pointerAngle <= it . mEndAngle ) { if ( i != mCurrentItem ) { setCurrentItem ( i , false ) ; } break ; } } }
calculate which pie slice is under the pointer , and set the current item field accordingly .
