update
This commit is contained in:
@@ -79,7 +79,6 @@ public class ChatMessageFragment extends AbsConversationFragment {
|
||||
ImageView status;
|
||||
Button follow;
|
||||
|
||||
MsgChatMessageListAdapter mAdapter;
|
||||
|
||||
private String token;
|
||||
private static final String TAG = "聊天界面";
|
||||
@@ -433,7 +432,7 @@ public class ChatMessageFragment extends AbsConversationFragment {
|
||||
|
||||
@Override
|
||||
public boolean onViewLongClick(int clickType, UiMessage data) {
|
||||
View position = mList.getLayoutManager().findViewByPosition(mAdapter.getPosition(data.getMessageId()));
|
||||
View position = mLinearLayoutManager.findViewByPosition(((MsgChatMessageListAdapter)mAdapter).getPosition(data.getMessageId()));
|
||||
new XPopup.Builder(getContext())
|
||||
.atView(position) // 依附于所点击的View,内部会自动判断在上方或者下方显示
|
||||
.asAttachList(new String[]{"分享", "编辑", "不带icon"},
|
||||
|
||||
Reference in New Issue
Block a user