public void setMax(int max) {
        mMax = max;
        if (mMax < mMin) {
            setMin(mMax - 1);
        }
        updateKeyboardRange();

        if (mValue < mMin || mValue > mMax) {
            setProgress(mMin);
        }
        //We need to refresh the PopupIndicator view
        updateIndicatorSizes();
    }
Sets the maximum value for this DiscreteSeekBar
if the supplied argument is smaller than the Current MIN value,
the MIN value will be set to MAX-1
<p/>
<p>
Also if the current progress is out of the new range, it will be set to MIN
</p>

@param max
@see #setMin(int)
@see #setProgress(int)
app/src/main/java/com/duan/musicoco/view/discreteseekbar/DiscreteSeekBar.java