app/src/main/java/com/smedic/tubtub/fragments/SearchFragment.java
@Override
    public void onVideosReceived(ArrayList<YouTubeVideo> youTubeVideos) {
        searchResultsList.clear();
        scrollResultsList.clear();
        scrollResultsList.addAll(youTubeVideos);

        handler.post(new Runnable() {
            public void run() {
                loadingProgressBar.setVisibility(View.INVISIBLE);
            }
        });

        addMoreData();
    }
/**
     * Called when video items are received
     *
     * @param youTubeVideos - videos to be shown in list view
     */
Called when video items are received
@param youTubeVideos - videos to be shown in list view
Called when video items are received @param youTubeVideos - videos to be shown in list view
@Override
    public void onVideosReceived(ArrayList<YouTubeVideo> youTubeVideos) {
        searchResultsList.clear();
        scrollResultsList.clear();
        scrollResultsList.addAll(youTubeVideos);
        handler.post(new Runnable() {
            public void run() {
                loadingProgressBar.setVisibility(View.INVISIBLE);
            }
        });
        addMoreData();
    }
@ Override public void onVideosReceived ( ArrayList < YouTubeVideo > youTubeVideos ) { searchResultsList . clear ( ) ; scrollResultsList . clear ( ) ; scrollResultsList . addAll ( youTubeVideos ) ; handler . post ( new Runnable ( ) { public void run ( ) { loadingProgressBar . setVisibility ( View . INVISIBLE ) ; } } ) ; addMoreData ( ) ; }
Called when video items are received
 @param youTubeVideos - videos to be shown in list view
Called when video items are received @param youTubeVideos - videos to be shown in list view