@Override
  public void setIndeterminate(final boolean indeterminate) {
    // avoid race with popState()
    synchronized (getLock()) {
      myIndeterminate = indeterminate;

      if (indeterminate && getFraction() != 0) {
        myFraction = 0;
      }
    }
  }
@Override
  public void setIndeterminate(final boolean indeterminate)