Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
Y
YDL-Component-Medical
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
杨凯
YDL-Component-Medical
Commits
a7fdbc90
Commit
a7fdbc90
authored
Jul 25, 2022
by
YKai
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: 对话详情页,点击相册埋点
parent
95a9c853
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
5 deletions
+3
-5
ImageAction.java
m-im/src/main/java/com/yidianling/uikit/business/session/actions/ImageAction.java
+1
-5
PickImageAction.java
m-im/src/main/java/com/yidianling/uikit/business/session/actions/PickImageAction.java
+2
-0
No files found.
m-im/src/main/java/com/yidianling/uikit/business/session/actions/ImageAction.java
View file @
a7fdbc90
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.msg.MessageBuilder
;
import
com.netease.nimlib.sdk.msg.constant.SessionTypeEnum
;
import
com.netease.nimlib.sdk.msg.model.IMMessage
;
import
com.yidianling.
medical.extension.ImActionCountConstantsKt
;
import
com.yidianling.
im.R
;
import
java.io.File
;
...
...
@@ -21,8 +19,6 @@ public class ImageAction extends PickImageAction {
@Override
protected
void
onPicked
(
File
file
)
{
// 埋点
ActionCountUtils
.
Companion
.
baiDuCountSign1
(
ImActionCountConstantsKt
.
YDL_MEDICAL_MESSAGE_DETAIL_PAGE
,
"photo_album_button_click"
,
""
);
IMMessage
message
;
if
(
getContainer
()
!=
null
&&
getContainer
().
sessionType
==
SessionTypeEnum
.
ChatRoom
)
{
message
=
ChatRoomMessageBuilder
.
createChatRoomImageMessage
(
getAccount
(),
file
,
file
.
getName
());
...
...
m-im/src/main/java/com/yidianling/uikit/business/session/actions/PickImageAction.java
View file @
a7fdbc90
...
...
@@ -44,6 +44,8 @@ public abstract class PickImageAction extends BaseAction {
@SuppressLint
(
"CheckResult"
)
@Override
public
void
onClick
()
{
// 埋点
ActionCountUtils
.
Companion
.
baiDuCountSign1
(
ImActionCountConstantsKt
.
YDL_MEDICAL_MESSAGE_DETAIL_PAGE
,
"photo_album_button_click"
,
""
);
new
RxPermissions
(
getActivity
()).
requestEach
(
Manifest
.
permission
.
CAMERA
)
.
subscribe
(
permission
->
{
if
(
permission
.
granted
)
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment