@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; } }
@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); }
@Override public void onDestroy() { super.onDestroy(); Utility.cancelTasks(task, avatarTask, topicListTask); }