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();
    }
public void setCurPie(PieInfoWrapperr infoWrapper, float degree) {
        if (mDrawingPie != null) {
            if (degree >= mDrawingPie.toAngle / 2) {
                if (!mDrawingPie.hasCached) {
                   
                    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();
    }
public void setcurpie(pieinfowrapperr infowrapper, float degree) { if (mdrawingpie != null) { if (degree >= mdrawingpie.toangle / 2) { if (!mdrawingpie.hascached) { 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(); }