@Override
 public void removeMsg(String id) {
   if (Utility.isTaskStopped(removeTask)) {
     removeTask = new RemoveTask(id);
     removeTask.executeOnExecutor(MyAsyncTask.THREAD_POOL_EXECUTOR);
   }
 }
 public void onTabReselected(ActionBar.Tab tab, FragmentTransaction ft) {
   switch (tab.getPosition()) {
     case 1:
       if (comment) {
         Utility.stopListViewScrollingAndScrollToTop(getCommentFragment().getListView());
       }
       break;
     case 2:
       if (repost) {
         Utility.stopListViewScrollingAndScrollToTop(getRepostFragment().getListView());
       }
       break;
     case 3:
       break;
   }
 }
예제 #3
0
 @Override
 protected void onCancelled(UserBean userBean) {
   super.onCancelled(userBean);
   if (Utility.isAllNotNull(getActivity(), this.e)) {
     Toast.makeText(getActivity(), e.getError(), Toast.LENGTH_SHORT).show();
   }
 }
 @Override
 protected void onDestroy() {
   super.onDestroy();
   Utility.cancelTasks(removeTask);
 }
예제 #5
0
 @Override
 public void onDestroy() {
   super.onDestroy();
   Utility.cancelTasks(task, avatarTask, topicListTask);
 }