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
cf6f6fbe
Commit
cf6f6fbe
authored
Jul 01, 2021
by
霍志良
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat:用户进入离开页面
parent
4c3c4016
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
2 deletions
+3
-2
YDLP2PMessageActivity.java
m-im/src/main/java/com/yidianling/uikit/business/session/activity/YDLP2PMessageActivity.java
+2
-1
YDLMessageFragment.java
m-im/src/main/java/com/yidianling/uikit/business/session/fragment/YDLMessageFragment.java
+1
-1
No files found.
m-im/src/main/java/com/yidianling/uikit/business/session/activity/YDLP2PMessageActivity.java
View file @
cf6f6fbe
...
...
@@ -53,6 +53,7 @@ public class YDLP2PMessageActivity extends YDLBaseMessageActivity {
private
int
screenHeight
;
protected
YDLMessageFragment
messageFragment
;
private
boolean
isChangeDoctor
=
false
;
String
oldName
=
""
;
/**
* @param context
...
...
@@ -223,8 +224,8 @@ public class YDLP2PMessageActivity extends YDLBaseMessageActivity {
try
{
JSONObject
json
=
JSON
.
parseObject
(
content
);
int
id
=
json
.
getIntValue
(
"id"
);
String
oldName
=
tb
.
getTitle
();
if
(
id
==
1
)
{
oldName
=
tb
.
getTitle
();
tb
.
setTitle
(
"对方正在输入..."
);
}
else
if
(
id
==
2
){
tb
.
setTitle
(
oldName
);
...
...
m-im/src/main/java/com/yidianling/uikit/business/session/fragment/YDLMessageFragment.java
View file @
cf6f6fbe
...
...
@@ -1477,7 +1477,7 @@ public class YDLMessageFragment extends TFragment implements ModuleProxy {
*
* */
private
void
userIsInPage
(
String
noticeType
,
String
content
,
String
fromUid
,
String
toUid
)
{
String
str
=
new
Gson
().
toJson
(
new
UserIsIn
(
new
UserIsInPageData
(
content
),
fromUid
,
noticeType
,
to
Uid
));
String
str
=
new
Gson
().
toJson
(
new
UserIsIn
(
new
UserIsInPageData
(
content
),
toUid
,
noticeType
,
from
Uid
));
RequestBody
body
=
RequestBody
.
create
(
MediaType
.
parse
(
"application/json; charset=utf-8"
),
str
);
Disposable
subscribe
=
ImRetrofitApi
.
Companion
.
getImRetrofitApi
().
lingxiSendNotice
(
body
)
.
compose
(
RxUtils
.
INSTANCE
.
resultJavaData
())
...
...
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