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
3d06ad0a
Commit
3d06ad0a
authored
Jan 06, 2020
by
徐健
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修复草稿功能
parent
d9e0420d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
8 deletions
+5
-8
YDLP2PMessageActivity.java
m-im/src/main/java/com/yidianling/uikit/business/session/activity/YDLP2PMessageActivity.java
+5
-8
No files found.
m-im/src/main/java/com/yidianling/uikit/business/session/activity/YDLP2PMessageActivity.java
View file @
3d06ad0a
...
@@ -90,14 +90,6 @@ public class YDLP2PMessageActivity extends YDLBaseMessageActivity {
...
@@ -90,14 +90,6 @@ public class YDLP2PMessageActivity extends YDLBaseMessageActivity {
protected
void
onDestroy
()
{
protected
void
onDestroy
()
{
if
(
ActionHandlerStorage
.
getL
(
sessionId
)
!=
null
)
if
(
ActionHandlerStorage
.
getL
(
sessionId
)
!=
null
)
ActionHandlerStorage
.
getL
(
sessionId
).
clear
(
sessionId
);
ActionHandlerStorage
.
getL
(
sessionId
).
clear
(
sessionId
);
//聊天返回时,检查是否有未发送内容,如果有则保存到ImTempData 临时map中,再次进入时读取
if
(
messageFragment
!=
null
)
{
if
(
messageFragment
.
getInputPanel
().
getInputContent
().
equals
(
"@"
))
{
messageFragment
.
getInputPanel
().
setInputContent
(
""
);
}
if
(
ActionHandlerStorage
.
getL
(
sessionId
)
!=
null
)
ActionHandlerStorage
.
getL
(
sessionId
).
saveImTempData
(
sessionId
,
messageFragment
.
getInputPanel
().
getInputContent
());
}
registerObservers
(
false
);
registerObservers
(
false
);
super
.
onDestroy
();
super
.
onDestroy
();
...
@@ -218,6 +210,11 @@ public class YDLP2PMessageActivity extends YDLBaseMessageActivity {
...
@@ -218,6 +210,11 @@ public class YDLP2PMessageActivity extends YDLBaseMessageActivity {
//清除对应ActionHandlerStorage的方法在这边进行调用
//清除对应ActionHandlerStorage的方法在这边进行调用
//而不是在YDLBaseMessageActivity的onDestroy中调用是因为ondestroy调用时机不确定,会导致第二次打开同一个activity找不到ActionHandlerStorage
//而不是在YDLBaseMessageActivity的onDestroy中调用是因为ondestroy调用时机不确定,会导致第二次打开同一个activity找不到ActionHandlerStorage
if
(
isFinishing
())
{
if
(
isFinishing
())
{
//聊天返回时,检查是否有未发送内容,如果有则保存到ImTempData 临时map中,再次进入时读取
if
(
messageFragment
!=
null
)
{
if
(
ActionHandlerStorage
.
getL
(
sessionId
)
!=
null
)
ActionHandlerStorage
.
getL
(
sessionId
).
saveImTempData
(
sessionId
,
messageFragment
.
getInputPanel
().
getInputContent
());
}
ActionHandlerStorage
.
recycleL
(
sessionId
);
ActionHandlerStorage
.
recycleL
(
sessionId
);
}
}
}
}
...
...
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