private void close() { if (searchTask != null) { searchTask.cancel(true); searchTask = null; } if (hotPlayTask != null) { hotPlayTask.cancel(true); hotPlayTask = null; } finish(); }
private void getHotPlay() { if (hotPlayTask == null) { hotPlayTask = new HotPlayTaskNew(this); hotPlayTask.execute(this, new HotPlayRequest(), new HotPlayParser()); } }