Commit a7fdbc90 by YKai

feat: 对话详情页,点击相册埋点

parent 95a9c853
package com.yidianling.uikit.business.session.actions; package com.yidianling.uikit.business.session.actions;
import com.ydl.ydlcommon.utils.actionutil.ActionCountUtils;
import com.yidianling.im.R;
import com.netease.nimlib.sdk.chatroom.ChatRoomMessageBuilder; import com.netease.nimlib.sdk.chatroom.ChatRoomMessageBuilder;
import com.netease.nimlib.sdk.msg.MessageBuilder; import com.netease.nimlib.sdk.msg.MessageBuilder;
import com.netease.nimlib.sdk.msg.constant.SessionTypeEnum; import com.netease.nimlib.sdk.msg.constant.SessionTypeEnum;
import com.netease.nimlib.sdk.msg.model.IMMessage; import com.netease.nimlib.sdk.msg.model.IMMessage;
import com.yidianling.medical.extension.ImActionCountConstantsKt; import com.yidianling.im.R;
import java.io.File; import java.io.File;
...@@ -21,8 +19,6 @@ public class ImageAction extends PickImageAction { ...@@ -21,8 +19,6 @@ public class ImageAction extends PickImageAction {
@Override @Override
protected void onPicked(File file) { protected void onPicked(File file) {
// 埋点
ActionCountUtils.Companion.baiDuCountSign1(ImActionCountConstantsKt.YDL_MEDICAL_MESSAGE_DETAIL_PAGE,"photo_album_button_click","");
IMMessage message; IMMessage message;
if (getContainer() != null && getContainer().sessionType == SessionTypeEnum.ChatRoom) { if (getContainer() != null && getContainer().sessionType == SessionTypeEnum.ChatRoom) {
message = ChatRoomMessageBuilder.createChatRoomImageMessage(getAccount(), file, file.getName()); message = ChatRoomMessageBuilder.createChatRoomImageMessage(getAccount(), file, file.getName());
......
...@@ -44,6 +44,8 @@ public abstract class PickImageAction extends BaseAction { ...@@ -44,6 +44,8 @@ public abstract class PickImageAction extends BaseAction {
@SuppressLint("CheckResult") @SuppressLint("CheckResult")
@Override @Override
public void onClick() { public void onClick() {
// 埋点
ActionCountUtils.Companion.baiDuCountSign1(ImActionCountConstantsKt.YDL_MEDICAL_MESSAGE_DETAIL_PAGE,"photo_album_button_click","");
new RxPermissions(getActivity()).requestEach(Manifest.permission.CAMERA) new RxPermissions(getActivity()).requestEach(Manifest.permission.CAMERA)
.subscribe(permission -> { .subscribe(permission -> {
if (permission.granted) { if (permission.granted) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment