예제 #1
0
 private void onCancelLoadNewsService() {
   if (mServiceLoadTask != null
       && mServiceLoadTask.getStatus() == SocialServiceLoadTask.Status.RUNNING) {
     mServiceLoadTask.cancel(true);
     mServiceLoadTask = null;
   }
 }
예제 #2
0
 public void launchNewsService() {
   if (ExoConnectionUtils.isNetworkAvailableExt(mContext)) {
     if (mServiceLoadTask == null
         || mServiceLoadTask.getStatus() == SocialServiceLoadTask.Status.FINISHED) {
       mServiceLoadTask =
           (SocialServiceLoadTask) new SocialServiceLoadTask(mContext, this, loaderItem).execute();
     }
   } else {
     new ConnectionErrorDialog(mContext).show();
   }
 }
예제 #3
0
 public boolean isLoadingTask() {
   return (mServiceLoadTask != null
       && mServiceLoadTask.getStatus() == SocialServiceLoadTask.Status.RUNNING);
 }