public synchronized void setIndeterminate(boolean indeterminate) {if ((!mOnlyIndeterminate || !mIndeterminate) && indeterminate != mIndeterminate) {mIndeterminate = indeterminate;if (indeterminate) {mCurrentDrawable = mIndeterminateDrawable;startAnimation();} else {mCurrentDrawable = mProgressDrawable;stopAnimation();}}}

public virtual void setIndeterminate(bool indeterminate){lock (this){if ((!mOnlyIndeterminate || !mIndeterminate) && indeterminate != mIndeterminate){mIndeterminate = indeterminate;if (indeterminate){mCurrentDrawable = mIndeterminateDrawable;startAnimation();}else{mCurrentDrawable = mProgressDrawable;stopAnimation();}}}}
