新增版本埋点
This commit is contained in:
@@ -12,6 +12,8 @@ import android.view.View;
|
||||
import android.view.ViewGroup;
|
||||
import android.widget.TextView;
|
||||
|
||||
import com.mango.core.statistic.StatisticManager;
|
||||
import com.mango.core.statistic.protocol.StatisticsProtocol;
|
||||
import com.netease.nim.uikit.api.NimUIKit;
|
||||
import com.netease.nim.uikit.api.model.contact.ContactChangedObserver;
|
||||
import com.netease.nim.uikit.api.model.main.OnlineStateChangeObserver;
|
||||
@@ -242,6 +244,7 @@ public class RoomMsgRecentContactsFragment extends TFragment {
|
||||
String title = "删除该聊天";
|
||||
alertDialog.addItem(title, () -> {
|
||||
// 删除会话,删除后,消息历史被一起删除
|
||||
StatisticManager.Instance().onEvent(StatisticsProtocol.EVENT_CHAT_LIST_DELETE_CLICK,"聊天列表长按删除聊天点击");
|
||||
NIMClient.getService(MsgService.class).deleteRecentContact2(recent.getContactId(), recent.getSessionType());
|
||||
NIMClient.getService(MsgService.class).clearChattingHistory(recent.getContactId(), recent.getSessionType());
|
||||
});
|
||||
@@ -256,6 +259,7 @@ public class RoomMsgRecentContactsFragment extends TFragment {
|
||||
NIMClient.getService(MsgService.class).updateRecent(recent);
|
||||
|
||||
refreshMessages(false);
|
||||
StatisticManager.Instance().onEvent(StatisticsProtocol.EVENT_CHAT_LIST_TOP_CLICK,"聊天列表长按置顶聊天点击");
|
||||
});
|
||||
alertDialog.show();
|
||||
}
|
||||
|
Reference in New Issue
Block a user