Ejemplo n.º 1
0
 @Override
 public void onCreate(Bundle savedInstanceState) {
   super.onCreate(savedInstanceState);
   searchResultsTask = null;
   cache = GamePool.getInstance().getSearchCache();
   query = GamePool.getInstance().getQuery();
   if (savedInstanceState != null) {
     restoreInstanceState(savedInstanceState);
   }
 }
Ejemplo n.º 2
0
  public void updateTask(RetrieveSearchResultsTask task) {
    searchResultsTask = task;
    GamePool.getInstance().setQuery(task.getQuery());
    query = GamePool.getInstance().getQuery();

    GamePool.getInstance().setSearchResultsCache(task.getCache());
    cache = GamePool.getInstance().getSearchCache();

    Log.i(TAG, "Updating data to reflect new search: " + query);
    Log.i(TAG, cache.toString());
  }