11111
This commit is contained in:
@@ -52,7 +52,7 @@ public class EditNameRemarksActivity extends AbsActivity implements View.OnClick
|
||||
});
|
||||
findViewById(R.id.btn_save).setOnClickListener(this);
|
||||
String content = InstructorRemarkManager.get(mContext).getInstructorRemark().get(userId);
|
||||
if (!TextUtils.isEmpty(content)){
|
||||
if (!TextUtils.isEmpty(content)) {
|
||||
mEditText.setText(content);
|
||||
mEditText.setSelection(content.length());
|
||||
}
|
||||
@@ -67,7 +67,23 @@ public class EditNameRemarksActivity extends AbsActivity implements View.OnClick
|
||||
}
|
||||
final String content = mEditText.getText().toString().trim();
|
||||
if (TextUtils.isEmpty(content)) {
|
||||
ToastUtil.show(R.string.edit_profile_name_empty);
|
||||
//获取用户信息
|
||||
UserInfo userInfo = RongUserInfoManager.getInstance().getUserInfo(userId);
|
||||
if (null != userInfo && !TextUtils.isEmpty(userInfo.getExtra())) {
|
||||
SearchUserBean userBean = GsonUtils.fromJson(userInfo.getExtra(), SearchUserBean.class);
|
||||
LiveHttpUtil.setInstructorRemark(userId, content, new HttpCallback() {
|
||||
@Override
|
||||
public void onSuccess(int code, String msg, String[] info) {
|
||||
ToastUtil.show(msg);
|
||||
if (code == 0) {
|
||||
InstructorRemarkManager.get(mContext).removeInstructorRemark(userId);
|
||||
//刷新列表内用户信息
|
||||
addUserInfoProvider(userBean.getUserNiceName());
|
||||
|
||||
}
|
||||
}
|
||||
});
|
||||
}
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user