@Override public void onError() { if (isLoadingViewShow()) { dismissLoadingView(); } ToastFactory.showMsg(this, R.string.detail_reply_error); }
@Override public void onSuccess() { if (mCurrentComment != null) { sendMsg(mCurrentComment); } if (isLoadingViewShow()) { dismissLoadingView(); } ToastFactory.showMsg(this, R.string.detail_reply_success); mAdapter.addRequestInfo(new RequestInfo(RequestInfo.TypeReply, mCurrentComment)); }
private void onClickQiuknow() { CreateKnowFacade.getInstance().unRegisterListener(this); // check whether or not the user is the same as me String uid = UserInfo.getInstance().getUid(); if (uid.equalsIgnoreCase(mUid)) { ToastFactory.showMsgForShortTime(this, R.string.addrlist_new_same); return; } Intent intent = new Intent(this, QiuKnowMessageActivity.class); intent.putExtra("uid", mUid); intent.putExtra("name", UserInfo.getInstance().getUserName()); intent.putExtra("targetName", mUserDetailInfo.getUser_info().getNick_name()); startActivityForResult(intent, 1); }