public synchronized void setIndeterminate(boolean indeterminate) {
        if (!indeterminate) {
            mCurrentProgress = 0.0f;
        }

        mProgressBarEnabled = indeterminate;
        mShouldUpdateButtonPosition = true;
        mProgressIndeterminate = indeterminate;
        mLastTimeAnimated = SystemClock.uptimeMillis();
        setupProgressBounds();
//        saveButtonOriginalPosition();
        updateBackground();
    }
public synchronized void setIndeterminate(boolean indeterminate) {
        if (!indeterminate) {
            mCurrentProgress = 0.0f;
        }

        mProgressBarEnabled = indeterminate;
        mShouldUpdateButtonPosition = true;
        mProgressIndeterminate = indeterminate;
        mLastTimeAnimated = SystemClock.uptimeMillis();
        setupProgressBounds();

        updateBackground();
    }
public synchronized void setIndeterminate ( boolean indeterminate ) { if ( ! indeterminate ) { mCurrentProgress = 0.0f ; } mProgressBarEnabled = indeterminate ; mShouldUpdateButtonPosition = true ; mProgressIndeterminate = indeterminate ; mLastTimeAnimated = SystemClock . uptimeMillis ( ) ; setupProgressBounds ( ) ; //        saveButtonOriginalPosition();
 updateBackground ( ) ; }
<p>Change the indeterminate mode for the progress bar. In indeterminate
mode, the progress is ignored and the progress bar shows an infinite
animation instead.</p>

@param indeterminate true to enable the indeterminate mode
<p > Change the indeterminate mode for the progress bar . In indeterminate mode the progress is ignored and the progress bar shows an infinite animation instead . < / p >