@Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); searchResultsTask = null; cache = GamePool.getInstance().getSearchCache(); query = GamePool.getInstance().getQuery(); if (savedInstanceState != null) { restoreInstanceState(savedInstanceState); } }
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()); }