JakeWharton/ActionBarSherlock — Issue #335: IndeterminateProgressBar does not disappear
Author: navarr
Created: 2012-03-06 19:35:02+00:00
State: open

On Pre-ICS devices, using ABS 4.0, calling setProgressBarIndeterminateVisibility(Boolean.FALSE); will not cause the progress bar to disappear under certain conditions.

An example is included:
```java
import com.actionbarsherlock.app.SherlockActivity;
import com.actionbarsherlock.view.Window;
import android.os.Bundle;

public class IndetermianteProgressBarAsyncActivity extends SherlockActivity {
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
requestWindowFeature(Window.FEATURE_INDETERMINATE_PROGRESS);

setContentView(R.layout.main);
setProgressBarIndeterminateVisibility(Boolean.TRUE);
setProgressBarIndeterminateVisibility(Boolean.FALSE);
}
}```

It is my theory this is because they are called in quick succession, and although this does not appear to be an issue it can be when using an AsyncTask that *can* run long, but runs short.