public synchronized void setMax(int max) {if (max < 0) {max = 0;}if (max != mMax) {mMax = max;postInvalidate();if (mProgress > max) {mProgress = max;}refreshProgress(R.id.progress, mProgress, false);}}

public synchronized void setMax ( int max ) { if ( max < 0 ) { max = 0 ; } if ( max != mMax ) { mMax = max ; postInvalidate ( ) ; if ( mProgress > max ) { mProgress = max ; } refreshProgress ( R . id . progress , mProgress , false ) ; } }
public virtual void setMax(int max){lock (this){if (max < 0){max = 0;}if (max != mMax){mMax = max;postInvalidate();if (mProgress > max){mProgress = max;}refreshProgress(android.@internal.R.id.progress, mProgress, false);}}}
