app/src/main/java/org/weibeld/nytexplore/activity/MainActivity.java
@Override
            public boolean onQueryTextSubmit(String query) {
                mAdapter.clearArticles();
                mScrollListener.resetState();
                mQuery = query;
                loadData(0);
                loadData(1);
                searchView.clearFocus();
                return true;
            }
// Note: empty search queries detected by the SearchView itself and ignored
empty search queries detected by the SearchView itself and ignored
empty search queries detected by the SearchView itself and ignored
@Override
            public boolean onQueryTextSubmit(String query) {
                mAdapter.clearArticles();
                mScrollListener.resetState();
                mQuery = query;
                loadData(0);
                loadData(1);
                searchView.clearFocus();
                return true;
            }
@ Override public boolean onQueryTextSubmit ( String query ) { mAdapter . clearArticles ( ) ; mScrollListener . resetState ( ) ; mQuery = query ; loadData ( 0 ) ; loadData ( 1 ) ; searchView . clearFocus ( ) ; return true ; }
Note: empty search queries detected by the SearchView itself and ignored
Note : empty search queries detected by the SearchView itself and ignored