@Override protected void onPostExecute(GroupListBean groupListBean) { GroupDBManager.getInstance() .updateGroupInfo(groupListBean, GlobalContext.getInstance().getCurrentAccountId()); GlobalContext.getInstance().setGroup(groupListBean); super.onPostExecute(groupListBean); }
@Override protected void onPostExecute(String s) { progressFragment.dismissAllowingStateLoss(); savaDraft(); finish(); Toast.makeText( WriteWeiboActivity.this, getString(R.string.send_successfully), Toast.LENGTH_SHORT) .show(); super.onPostExecute(s); }
@Override protected void onPostExecute(UserBean o) { super.onPostExecute(o); Toast.makeText( getActivity(), getActivity().getString(R.string.unfollow_successfully), Toast.LENGTH_SHORT) .show(); adapter.update(bean, o); }
@Override protected void onPostExecute(Object o) { pullToRefreshListView.setVisibility(View.VISIBLE); timeLineAdapter.notifyDataSetChanged(); refreshLayout(bean); super.onPostExecute(o); /** * when this account first open app,if he don't have any data in database,fetch data from * server automally */ if (bean.getSize() == 0) { pullToRefreshListView.startRefreshNow(); } }
@Override protected void onPostExecute(MessageListBean newValue) { super.onPostExecute(newValue); if (newTask != null && newTask.getStatus() != MyAsyncTask.Status.FINISHED) { return; } if (oldTask != null && oldTask.getStatus() != MyAsyncTask.Status.FINISHED) { return; } if (middleTask != null && middleTask.getStatus() != MyAsyncTask.Status.FINISHED) { return; } if (newValue == null || newValue.getSize() == 0 || getActivity() == null || isListViewFling()) return; int firstPosition = getListView().getFirstVisiblePosition(); int size = newValue.getSize(); if (newValue.getItemList().size() < AppConfig.DEFAULT_MSG_NUMBERS) { // for speed, add old data after new data newValue.getItemList().addAll(getList().getItemList()); } else { // null is flag means this position has some old messages which dont appear if (getList().getSize() > 0) { newValue.getItemList().add(null); } newValue.getItemList().addAll(getList().getItemList()); } int index = getListView().getFirstVisiblePosition(); clearAndReplaceValue(newValue); View v = getListView().getChildAt(1); int top = (v == null) ? 0 : v.getTop(); timeLineAdapter.notifyDataSetChanged(); int ss = index + size; // if (firstPosition == 0) { //// // } else { getListView().setSelectionFromTop(ss + 1, top); // } // getListView().setLayoutTransition(null); }
@Override protected void onPostExecute(String s) { super.onPostExecute(s); setResult(RESULT_OK, null); finish(); }
@Override protected void onPostExecute(String s) { Toast.makeText(WriteWeiboActivity.this, s, Toast.LENGTH_SHORT).show(); location = s; super.onPostExecute(s); }