// fix anim duration too short
public void setCurPie(PieInfoWrapperr infoWrapper, float degree) {
        if (mDrawingPie != null) {
            if (degree >= mDrawingPie.toAngle / 2) {
                if (!mDrawingPie.hasCached) {
                    // fix anim duration too short
                    PieInfoWrapperr preWrapper = mDrawingPie.preWrapper;
                    if (preWrapper != null && !preWrapper.hasCached) {
                        preWrapper.hasCached = true;
                        mCachedDrawWrappers.add(preWrapper);
                    }
                    mCachedDrawWrappers.add(mDrawingPie);
                    mDrawingPie.hasCached = true;
                }
            }
        }
        mDrawingPie = infoWrapper;
        animAngle = degree;
        callInvalidate();
    }
if (degree >= mDrawingPie.toAngle / 2) {
if (!mDrawingPie.hasCached) {
// fix anim duration too short
PieInfoWrapperr preWrapper = mDrawingPie.preWrapper;
if (preWrapper != null && !preWrapper.hasCached) {
public void setCurPie(PieInfoWrapperr infoWrapper, float degree) {
if (mDrawingPie != null) {
if (degree >= mDrawingPie.toAngle / 2) {
if (!mDrawingPie.hasCached) {
// fix anim duration too short
PieInfoWrapperr preWrapper = mDrawingPie.preWrapper;
if (preWrapper != null && !preWrapper.hasCached) {
preWrapper.hasCached = true;
mCachedDrawWrappers.add(preWrapper);
}
mCachedDrawWrappers.add(mDrawingPie);
mDrawingPie.hasCached = true;
}
}
}
public void setCurPie(PieInfoWrapperr infoWrapper, float degree) {
if (mDrawingPie != null) {
if (degree >= mDrawingPie.toAngle / 2) {
if (!mDrawingPie.hasCached) {
// fix anim duration too short
PieInfoWrapperr preWrapper = mDrawingPie.preWrapper;
if (preWrapper != null && !preWrapper.hasCached) {
preWrapper.hasCached = true;
mCachedDrawWrappers.add(preWrapper);
}
mCachedDrawWrappers.add(mDrawingPie);
mDrawingPie.hasCached = true;
}
}
}
mDrawingPie = infoWrapper;
animAngle = degree;
callInvalidate();
}