@SuppressWarnings({"WeakerAccess", "unused"}) // For library users
    public void enableProgressBar() {
        showProgressBar = true;

        if (searchBoxViewModel != null) {
            progressController = new SearchProgressController(new SearchProgressController.ProgressListener() {
                @Override
                public void onStart() {
                    updateProgressBar(searchBoxViewModel, true);
                }

                @Override
                public void onStop() {
                    updateProgressBar(searchBoxViewModel, false);
                }
            }, progressBarDelay);
        }
    }
@ SuppressWarnings ( { "WeakerAccess" , "unused" } ) public void enableProgressBar ( ) { showProgressBar = true ; if ( searchBoxViewModel != null ) { progressController = new SearchProgressController ( new SearchProgressController . ProgressListener ( ) { @ Override public void onStart ( ) { updateProgressBar ( searchBoxViewModel , true ) ; } @ Override public void onStop ( ) { updateProgressBar ( searchBoxViewModel , false ) ; } } , progressBarDelay ) ; } }
Enables the display of a spinning {@link android.widget.ProgressBar ProgressBar} in the SearchView when waiting for results.