修复测试反馈问题
This commit is contained in:
@@ -51,6 +51,7 @@ import com.yunbao.common.http.base.HttpCallback;
|
||||
import com.yunbao.common.interfaces.ImageResultCallback;
|
||||
import com.yunbao.common.interfaces.OnItemClickListener;
|
||||
import com.yunbao.common.manager.IMLoginManager;
|
||||
import com.yunbao.common.utils.AppManager;
|
||||
import com.yunbao.common.utils.Bus;
|
||||
import com.yunbao.common.utils.ProcessImageUtil;
|
||||
import com.yunbao.common.utils.StringUtil;
|
||||
@@ -304,6 +305,8 @@ public class ChatMessageFragment extends AbsConversationFragment {
|
||||
super.onError(status, msg);
|
||||
if(status==1) {
|
||||
sendAuthRequest();
|
||||
}else if(!StringUtil.isEmpty(msg)){
|
||||
ToastUtil.show(msg);
|
||||
}
|
||||
}
|
||||
});
|
||||
@@ -353,6 +356,8 @@ public class ChatMessageFragment extends AbsConversationFragment {
|
||||
super.onError(status, msg);
|
||||
if(status==1) {
|
||||
sendAuthRequest();
|
||||
}else if(!StringUtil.isEmpty(msg)){
|
||||
ToastUtil.show(msg);
|
||||
}
|
||||
}
|
||||
});
|
||||
@@ -405,12 +410,12 @@ public class ChatMessageFragment extends AbsConversationFragment {
|
||||
.getTargetUserInfo(Integer.parseInt(targetId), new HttpCallback<UserBean>() {
|
||||
@Override
|
||||
public void onSuccess(UserBean data) {
|
||||
/* if (data.getInfo().getName_auth() == 2) {
|
||||
if (data.getInfo().getName_auth() == 2) {
|
||||
listener.onSuccess("", null);
|
||||
} else {
|
||||
listener.onError(data.getInfo().getName_auth(), "");
|
||||
}*/
|
||||
listener.onSuccess("", null);
|
||||
} else if(data.getInfo().getName_auth() == 3){
|
||||
listener.onError(data.getInfo().getName_auth(), "當前正在審核中,請耐心等待");
|
||||
}
|
||||
// listener.onSuccess("", null);
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
@@ -146,7 +146,9 @@ public class MsgMessageFragment extends BaseFragment implements BaseAdapter.OnIt
|
||||
BaseUiConversation conversation = mAdapter.getData().get(swipeRunnable.adapterPosition);
|
||||
if (swipeRunnable.menuPosition == 0) {
|
||||
topItem(conversation, swipeRunnable.adapterPosition);
|
||||
top.setText(R.string.untop);
|
||||
} else {
|
||||
top.setText(R.string.top);
|
||||
removeItem(conversation, swipeRunnable.adapterPosition);
|
||||
}
|
||||
swipeRunnable = null;
|
||||
@@ -502,11 +504,12 @@ public class MsgMessageFragment extends BaseFragment implements BaseAdapter.OnIt
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
SwipeMenuItem top=null;
|
||||
SwipeMenuItem del=null;
|
||||
private SwipeMenuCreator initSwipeMenuCreator() {
|
||||
SwipeMenuCreator creator = (leftMenu, rightMenu, position) -> {
|
||||
SwipeMenuItem top = new SwipeMenuItem(getContext());
|
||||
SwipeMenuItem del = new SwipeMenuItem(getContext());
|
||||
top = new SwipeMenuItem(getContext());
|
||||
del = new SwipeMenuItem(getContext());
|
||||
top.setBackgroundColor(Color.parseColor("#D9D9D9"));
|
||||
del.setBackgroundColor(Color.parseColor("#FE5268"));
|
||||
top.setText(R.string.top);
|
||||
|
||||
Reference in New Issue
Block a user