Code example for SparseBooleanArray

Methods: size

0
    } 
 
    private void updateWindowIndeterminateProgress() { 
        // Show an indeterminate progress spinner when something is loading, 
        // unless the main loading view is already visible. 
        mWindow.setFeatureInt(Window.FEATURE_INDETERMINATE_PROGRESS, mActive.size() != 0
                && mLoading.getVisibility() != View.VISIBLE ? Window.PROGRESS_VISIBILITY_ON
                : Window.PROGRESS_VISIBILITY_OFF);
    } 
 
    private boolean isEmpty() { 
        // Don't use AdapterView#getCount() because it is updated asynchronously 
        Adapter adapter = mAdapterView.getAdapter();
        return adapter == null || adapter.isEmpty();
    } 
 
    private static boolean hasError(Cursor data) {
        return data == null || data.getExtras().containsKey(FeedExtras.EXTRA_ERROR);
    } 
}