Commit 6b1815c4 authored by Ludovic Fauvet's avatar Ludovic Fauvet

Enable the indeterminate progress for pre-ICS devices too

Using the proper method makes it work. Oops...
parent a4a3e5ed
......@@ -118,8 +118,8 @@ public class MainActivity extends SherlockFragmentActivity {
return;
}
if (Util.isICSOrLater()) /* Bug on pre-ICS, the progress bar is always present */
requestWindowFeature(Window.FEATURE_INDETERMINATE_PROGRESS);
/* Enable the indeterminate progress feature */
requestWindowFeature(Window.FEATURE_INDETERMINATE_PROGRESS);
// Set up the sliding menu
setContentView(R.layout.sliding_menu);
......@@ -515,9 +515,9 @@ public class MainActivity extends SherlockFragmentActivity {
String action = intent.getAction();
if (action.equalsIgnoreCase(ACTION_SHOW_PROGRESSBAR)) {
setProgressBarIndeterminateVisibility(Boolean.TRUE);
setSupportProgressBarIndeterminateVisibility(true);
} else if (action.equalsIgnoreCase(ACTION_HIDE_PROGRESSBAR)) {
setProgressBarIndeterminateVisibility(Boolean.FALSE);
setSupportProgressBarIndeterminateVisibility(false);
} else if (action.equalsIgnoreCase(ACTION_SHOW_TEXTINFO)) {
String info = intent.getStringExtra("info");
int max = intent.getIntExtra("max", 0);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment