Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
S
Simple-Sms
Project
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
zhangchengbo
Simple-Sms
Commits
a4433c7a
Commit
a4433c7a
authored
Dec 05, 2025
by
zhangchengbo
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix:解决通讯录创建一个联系人,同时将该联系人在顺丰小哥app添加为待取件人,通过顺丰小哥app给该联系人发短息,短信显示未展示通讯录备注名称
parent
8c6c14e4
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletion
+3
-1
MainActivity.kt
...c/main/kotlin/com/secspace/sms/activities/MainActivity.kt
+3
-1
No files found.
app/src/main/kotlin/com/secspace/sms/activities/MainActivity.kt
View file @
a4433c7a
...
...
@@ -459,8 +459,10 @@ class MainActivity : SimpleActivity() {
Log
.
d
(
TAG
,
" setFirstConversationAndUpdateData: 执行查询会话 messages 数据库 =:${GsonUtil.parseListToJson(messages)} "
)
val
lastMsg
:
Message
=
messages
.
last
()
Log
.
d
(
TAG
,
"setFirstConversationAndUpdateData: lastMsg = ${Gson().toJson(lastMsg)}"
)
firstConversation
.
snippet
=
lastMsg
.
body
firstConversation
.
date
=
lastMsg
.
date
firstConversation
.
userName
=
lastMsg
.
senderName
val
listContains
:
List
<
String
>
=
messages
.
map
{
it
.
body
}.
filter
{
it
.
contains
(
"\u200B"
)
}
Log
.
d
(
TAG
,
"setFirstConversationAndUpdateData: 该对话是否有包含零宽字符 = ${listContains.isNotEmpty()}"
)
...
...
@@ -518,7 +520,7 @@ class MainActivity : SimpleActivity() {
//根据记录被删除的会话手机号,从会话列表中判断手机号是否一致,满足就脱敏手机号(为了解决荣耀云备份后恢复,手机号未脱敏的情况)
val
listMsgIdAll
:
String
?
=
Config
.
newInstance
(
this
@MainActivity
).
listDeleteMsgIdAllData
Log
.
d
(
TAG
,
"setupConversations 云备份 获取被删除的会话集合 listMsgIdAll
= ${listMsgIdAll
}"
)
Log
.
d
(
TAG
,
"setupConversations 云备份 获取被删除的会话集合 listMsgIdAll
不等于空 = ${!listMsgIdAll.isNullOrEmpty()
}"
)
if
(!
listMsgIdAll
.
isNullOrEmpty
())
{
val
listData
:
ArrayList
<
String
>
=
listMsgIdAll
.
split
(
","
).
toArrayList
()
Log
.
d
(
TAG
,
"setupConversations 云备份 split listData = ${listData}"
)
...
...
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