Ejemplo n.º 1
0
 public void search(String query) {
   mode = SEARCH_MODE;
   this.query = query;
   this.lastPage = 1;
   videoListAdapter.clearVideoList();
   setListShown(false);
   startSearch(query, lastPage);
   getListView().smoothScrollToPosition(0);
 }
Ejemplo n.º 2
0
 public void search(String query) {
   mode = SEARCH_MODE;
   this.query = query;
   this.lastPage = 1;
   videoListAdapter.clearVideoList();
   setListShown(false);
   startSearch(query, lastPage);
   // todo: Somehow this command is not working on older devices,
   // although it was introduced with API level 8. Test this and find a solution.
   getListView().smoothScrollToPosition(0);
 }