code: public synchronized void setIndeterminate(boolean indeterminate) {
          if (!indeterminate) {
              mCurrentProgress = 0.0f;
          }
  
          mProgressBarEnabled = indeterminate;
          mShouldUpdateButtonPosition = true;
          mProgressIndeterminate = indeterminate;
          mLastTimeAnimated = SystemClock.uptimeMillis();
          setupProgressBounds();
  //        saveButtonOriginalPosition();
          updateBackground();
      }
docs: <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