The Ti.UI.Android.ProgressIndicator whose "location" property is set to Ti.UI.Android.PROGRESS_INDICATOR_STATUS_BAR no longer displays a progress indicator in the activity window's ActionBar. This feature no longer works.
The ProgressIndicator object's defaults to using the status bar, making this an issue. All Titanium developers need to set it to Ti.UI.Android.PROGRESS_INDICATOR_DIALOG to see progress. This is the only "location" property setting that works.
Google has stopped supporting this feature as of Android 5.0.
This feature does not work on Android 4.4 either. Likely because the Google Support library's ActionBar and/or AppCompatActivity class dropped support of this feature as well.
The below code does NOT show a progress indicator on Android 4.4 and above anymore. This feature appears to be dead.
We should do one of the following...
- Find an alternative solution for showing progress in the action bar or status bar. (Note that Google's guidelines do not recommend this anymore.)
- Drop status bar progress support and have "location" default to showing a dialog.
If we remove the status bar feature, then we may want to remove the TiBaseActivity.requestWindowFeature() method calls for constants FEATURE_PROGRESS and FEATURE_INDETERMINATE_PROGRESS here...