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