Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

IndeterminateProgressBar does not disappear #335

Closed
navarr opened this Issue · 2 comments

2 participants

@navarr

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:

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.

Build Target: 15
minSdkVersion: 7

@JakeWharton
Owner
@navarr

My mistake @.@;

@navarr navarr closed this
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.