升级融云sdk版本暂存
This commit is contained in:
parent
f391d1bee7
commit
4337f0bdd6
@ -14,9 +14,19 @@ public class MessageUserInfoBean extends BaseModel{
|
|||||||
@SerializedName("msg")
|
@SerializedName("msg")
|
||||||
String sayHiMsg;
|
String sayHiMsg;
|
||||||
|
|
||||||
|
int id;
|
||||||
|
|
||||||
int status; //0 需要跳转到 编辑资料页面
|
int status; //0 需要跳转到 编辑资料页面
|
||||||
String extras;
|
String extras;
|
||||||
|
|
||||||
|
public int getId() {
|
||||||
|
return id;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setId(int id) {
|
||||||
|
this.id = id;
|
||||||
|
}
|
||||||
|
|
||||||
public String getExtras() {
|
public String getExtras() {
|
||||||
return extras;
|
return extras;
|
||||||
}
|
}
|
||||||
|
@ -87,6 +87,10 @@ public class MessageSayHiNotifyDialog extends AbsDialogCenterPopupWindow {
|
|||||||
@Override
|
@Override
|
||||||
protected void onCreate() {
|
protected void onCreate() {
|
||||||
super.onCreate();
|
super.onCreate();
|
||||||
|
if(userInfoBean.getId()==0){
|
||||||
|
dismiss();
|
||||||
|
return;
|
||||||
|
}
|
||||||
findViewById(R.id.liveGo).setOnClickListener(v -> {
|
findViewById(R.id.liveGo).setOnClickListener(v -> {
|
||||||
isSayHi = true;
|
isSayHi = true;
|
||||||
Conversation.ConversationType type = Conversation.ConversationType.PRIVATE;
|
Conversation.ConversationType type = Conversation.ConversationType.PRIVATE;
|
||||||
|
@ -66,6 +66,14 @@ public class MyAddressBookFragment extends Fragment {
|
|||||||
if(emptyView!=null){
|
if(emptyView!=null){
|
||||||
mAdapter.setEmptyView(emptyView);
|
mAdapter.setEmptyView(emptyView);
|
||||||
}
|
}
|
||||||
|
mAdapter.setOnItemClickListener(new OnItemClickListener<MessageChatUserBean>() {
|
||||||
|
@Override
|
||||||
|
public void onItemClick(MessageChatUserBean bean, int position) {
|
||||||
|
if(position==-2){
|
||||||
|
initData();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
});
|
||||||
this.mList = (RecyclerView) view.findViewById(R.id.rc_conversation_list);
|
this.mList = (RecyclerView) view.findViewById(R.id.rc_conversation_list);
|
||||||
this.mRefreshLayout = (SmartRefreshLayout) view.findViewById(R.id.rc_refresh);
|
this.mRefreshLayout = (SmartRefreshLayout) view.findViewById(R.id.rc_refresh);
|
||||||
LinearLayoutManager layoutManager = new LinearLayoutManager(this.getActivity());
|
LinearLayoutManager layoutManager = new LinearLayoutManager(this.getActivity());
|
||||||
|
@ -71,7 +71,7 @@ public class PDLiveCustomConversationProvider extends BaseConversationProvider {
|
|||||||
String cn = WordUtil.getChineseString(def);
|
String cn = WordUtil.getChineseString(def);
|
||||||
String en = WordUtil.getEnglishString(def);
|
String en = WordUtil.getEnglishString(def);
|
||||||
String content = uiConversation.mConversationContent.toString();
|
String content = uiConversation.mConversationContent.toString();
|
||||||
Log.i("列表----", "bindViewHolder: " + str + " | " + uiConversation.mConversationContent);
|
Log.i("列表----", "bindViewHolder: " + str + " | " + uiConversation.mConversationContent+" | "+WordUtil.isNewZh());
|
||||||
if (WordUtil.isNewZh()) {
|
if (WordUtil.isNewZh()) {
|
||||||
if (en.equals(content)) {
|
if (en.equals(content)) {
|
||||||
uiConversation.mConversationContent = new SpannableString(WordUtil.getNewString(def));
|
uiConversation.mConversationContent = new SpannableString(WordUtil.getNewString(def));
|
||||||
|
Loading…
Reference in New Issue
Block a user